From 3189fce5347c09ceceff6b27fe5b74e2897b87ce Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Thu, 26 Jan 2017 19:46:27 -0500 Subject: [PATCH 01/51] uploading version 0.0.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9751d66..6107d59 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup -version = '0.0.1' +version = '0.0.2' requires = ['google-api-python-client>=1.5.3'] setup_requirements = ['pytest-runner>=2.0'] test_requirements = ['pytest>=2.8.0'] From 0b73da56ec49d424df53aeddfb3cf67e198670ab Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 7 Feb 2017 18:14:31 -0500 Subject: [PATCH 02/51] started improved README --- README.md | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bcdb95d..5f8f387 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,45 @@ -### Google Slides API Wrapper -## Connor Sullivan 2016 +# Google Objects +Pythonic, OO Google Slides, Sheets, and Drive interactions. Currently only supports Python 2.7. -Wraps google-api-python-client to provide fantabulous models and functionality +## Installation + ```bash + $ pip install google-objects + ``` + +## Usage +Requires a valid Google API Credentials object from Google's excellent oauth2lib library, for more information visit [here](https://developers.google.com/identity/protocols/OAuth2). + +## Google Drive + +- [x] Retrieve about information: + + + ```python + from google_objects import DriveAPI + + gdrive = DriveAPI(OAUTH2LIB_CREDS) + about = gdrive.get_about() + + print about.email + print about.name + + # link to profile photo + print profile.photo + + ``` +- [x] List files by type: + +```python + gdrive = DriveAPI(OAUTH2LIB_CREDS) + + files_by_type = { + 'slides': gdrive.list_files('presentation'), + 'folders': gdrive.list_files('folder'), + 'spreadsheets': gdrive.list_files('spreadsheets'), + } + + for file in files_by_type['folders']: + print file.id + print file.name + # ... +``` From 3420f96a32bd3d2f6c9e095514c0d7d52547343d Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 7 Feb 2017 18:25:45 -0500 Subject: [PATCH 03/51] improved code indenting --- README.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5f8f387..0d51569 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ # Google Objects -Pythonic, OO Google Slides, Sheets, and Drive interactions. Currently only supports Python 2.7. +:snake: Pythonic, OO Google Slides, Sheets, and Drive interactions. Currently only supports Python 2.7. ## Installation - ```bash - $ pip install google-objects - ``` +```bash + $ pip install google-objects +``` ## Usage Requires a valid Google API Credentials object from Google's excellent oauth2lib library, for more information visit [here](https://developers.google.com/identity/protocols/OAuth2). -## Google Drive +### Google Drive - [x] Retrieve about information: - ```python +```python from google_objects import DriveAPI gdrive = DriveAPI(OAUTH2LIB_CREDS) @@ -23,15 +23,15 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib print about.email print about.name - # link to profile photo - print profile.photo + # prints link to profile photo + print about.photo - ``` + # ... +``` - [x] List files by type: -```python - gdrive = DriveAPI(OAUTH2LIB_CREDS) +```python files_by_type = { 'slides': gdrive.list_files('presentation'), 'folders': gdrive.list_files('folder'), @@ -41,5 +41,10 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib for file in files_by_type['folders']: print file.id print file.name - # ... + + for file in files_by_type['spreadsheets']: + # prints list of parent folder IDs + print file.parents + + # ... ``` From e3f4ba051a8ffe6d92ef000c8a63be6278b119ae Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 7 Feb 2017 23:41:18 -0500 Subject: [PATCH 04/51] added serialize method to parent class --- README.md | 3 ++- google_objects/__init__.py | 16 +++++++++++++++- google_objects/drive.py | 24 ++---------------------- google_objects/slides.py | 30 ++++++++++++------------------ 4 files changed, 31 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 0d51569..90bb39f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Google Objects -:snake: Pythonic, OO Google Slides, Sheets, and Drive interactions. Currently only supports Python 2.7. +Thin, pythonic OO wrapper around Google's "google-api-python-client" library. +Currently only supports Python 2.7. :snake::snake::snake: ## Installation ```bash diff --git a/google_objects/__init__.py b/google_objects/__init__.py index e5e9744..9ae22e5 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -51,6 +51,8 @@ class GoogleObject(object): values. """ + _properties = set() + def __init__(self, **kwargs): """Set Resource corresponding **kwargs to private attributes. @@ -63,7 +65,19 @@ def from_existing(cls, data, *args): return cls(*args, **new_data) def serialize(self): - return keys_to_camel(vars(self)) + """convert __dict__ keys to camel case, get + intersection of this and _properties + """ + + return_dict = keys_to_camel(vars(self)) + keys = return_dict.keys() + + # return only defined properties + excess_keys = set(keys) - self._properties + for key in excess_keys: + del return_dict[key] + + return return_dict from .drive import DriveAPI diff --git a/google_objects/drive.py b/google_objects/drive.py index a98720e..bcf778e 100644 --- a/google_objects/drive.py +++ b/google_objects/drive.py @@ -274,9 +274,9 @@ def copy(self, name=None, parents=[]): return self.client.copy_file(self.id, new) def list_permissions(self): - """returns list of permission for this + """Returns list of permission for this drive file, return empty if caller is - not authorized to share + not authorized to share. """ permissions = [] @@ -316,9 +316,6 @@ def start_watching(self, **kwargs): """ return self.client.watch_file(self.id, **kwargs) - def serialize(self): - return keys_to_camel(vars(self)) - class Permission(GoogleObject): @@ -393,20 +390,3 @@ def email(self, value): # add update call if _id is present if len(value.split('@')) is 2: self._email_address = value - - def serialize(self): - """convert __dict__ keys to camel case, get - intersection of this and _properties - """ - - return_dict = keys_to_camel(vars(self)) - keys = return_dict.keys() - key_set = set(keys) - - excess_key_set = key_set - self._properties - excess_keys = list(excess_key_set) - - for key in excess_keys: - del return_dict[key] - - return return_dict diff --git a/google_objects/slides.py b/google_objects/slides.py index 7f73398..9e9fdee 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -93,6 +93,13 @@ class Presentation(GoogleObject): passes it to its for execution. """ + _properties = { + 'presentationId', + 'layouts', + 'slides', + 'masters', + } + def __init__(self, client=None, **kwargs): """Class for Presentation object @@ -228,6 +235,10 @@ class Page(GoogleObject): :kwargs // representing API Page Resource """ + _properties = { + 'pageElements' + } + def __init__(self, presentation=None, **kwargs): self.presentation = presentation super(Page, self).__init__(**kwargs) @@ -293,27 +304,10 @@ def yield_elements(self, __sub_list=[]): yield self.__load_element(element) - def element_list(self): + def elements(self): """Return a list of PageElement instances.""" return [element for element in self.yield_elements()] - def elements(self): - """Generates Page elements recursively. - - *DEPRECATED after testing of element_list(). - """ - - elem_list = [] - - for element in self._page_elements: - if 'elementGroup' in element: - for child in element.get('children'): - elem_list.append(self.__load_element(child)) - - elem_list.append(self.__load_element(element)) - - return elem_list - def __iter__(self): return self.yield_elements() From 60e2f23ae012e5cce193ac21a954f7bb4b7d89bf Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sun, 12 Feb 2017 22:02:23 -0500 Subject: [PATCH 05/51] created TextContent and TextElement objects --- google_objects/__init__.py | 1 - google_objects/slides.py | 203 ++++++++++++++++++++----------------- tests/test_slides.py | 22 +++- 3 files changed, 126 insertions(+), 100 deletions(-) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 9ae22e5..0dd11d9 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -4,7 +4,6 @@ import httplib2 from apiclient import discovery -# from apiclient.errors import HttpError from .utils import set_private_attrs from .utils import keys_to_snake, keys_to_camel diff --git a/google_objects/slides.py b/google_objects/slides.py index 9e9fdee..81df43e 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -11,6 +11,8 @@ import logging import httplib2 +from apiclient.errors import HttpError + from . import GoogleAPI, GoogleObject from .utils import keys_to_snake, set_private_attrs @@ -76,7 +78,7 @@ def push_updates(self, presentation_id, updates): """Push Update Requests to Presentation API, throw errors if necessary. """ - presentation = self._resource.presentations().batchUpdate( + self._resource.presentations().batchUpdate( presentationId=presentation_id, body={'requests': updates} ).execute() @@ -121,13 +123,12 @@ def from_existing(cls, data, client=None): def __enter__(self): return self - def __exit__(self, exception_type, exception_value, traceback): + def __exit__(self, ex_type, ex_val, traceback): try: self.update() return True - except Exception as e: - log.error(e) - return False + except HttpError as e: + raise e def __iter__(self): for page in self.slides(): @@ -181,25 +182,25 @@ def get_matches(self, regex): tags = [] for page in self.slides(): for element in page: - log.debug('Checking Element...') - log.debug('Type:' + str(type(element))) - # check shape - if type(element) is Shape: - if element.match(regex): - log.debug('Match in SHAPE:', element.id) - tags.append((element.text, element.about())) - # tags.add(element.text) + if isinstance(element, Shape): + if element.text: + for text in element.text: + if text.match(regex): + log.debug('Match in SHAPE:', element.id) + tags.append((text.text, element.about())) + # tags.add(element.text) # check all table cells - if type(element) is Table: + if isinstance(element, Table): for cell in element.cells(): - if cell.match(regex): - log.debug( - 'Match in TABLE: {}, coords: {}'.format(cell.table.id, cell.location) - ) - # tags.add(cell.text) - tags.append((cell.text, cell.about())) + for text in cell.text: + if text.match(regex): + log.debug('Match in TABLE: %s, coords: %s', + cell.table.id, cell.location + ) + # tags.add(cell.text) + tags.append((text.text, cell.about())) return tags def replace_text(self, find, replace, case_sensitive=False): @@ -403,41 +404,15 @@ def __init__(self, presentation=None, page=None, **kwargs): super(Shape, self).__init__(presentation, page, **kwargs) - def match(self, regex): - """Returns True or False if regular expression - matches the text inside. - """ - if self.text and re.match(regex, self.text): - return True - else: - return False - @property def text(self): - if hasattr(self, '_text') and 'raw_text' in self._text: - return self._text['raw_text'] - - @property - def rendered_text(self): - if hasattr(self, '_text') and 'rendered_text' in self._text: - return self._text['rendered_text'] - - @text.setter - def text(self, value): - if not self._text: - self.update(SlidesUpdate.delete_text(self.id)) - - self.update( - SlidesUpdate.insert_text(self.id, value) - ) - - self._text['raw_text'] = value - - @text.deleter - def text(self): - self.update( - SlidesUpdate.delete_text() - ) + if hasattr(self, '_text'): + return TextContent( + self.presentation, + self.page, + self, + **self._text + ) @property def type(self): @@ -486,51 +461,17 @@ class Cell(GoogleObject): def __init__(self, table, **kwargs): self.table = table - super(Table.Cell, self).__init__(**kwargs) - def match(self, regex): - """Returns True or False if regular expression - matches the text inside. - """ - - if hasattr(self, '_text') and re.match(regex, self.text): - return True - return False - @property def text(self): - if hasattr(self, '_text') and 'raw_text' in self._text: - return self._text['raw_text'] - - @text.setter - def text(self, value): - if not hasattr(self, '_text') or self._text: - self.table.update( - SlidesUpdate.delete_text( - self.table.id, - self.row_index, - self.column_index - ) - ) - - self.table.update( - SlidesUpdate.insert_text( - self.table.id, - value, - self.row_index, - self.column_index + if hasattr(self, '_text'): + return TextContent( + self.table.presentation, + self.table.page, + self.table, + **self._text ) - ) - - self._text = value - - @text.deleter - def text(self): - self._table.update( - SlidesUpdate.delete_text() - ) - self._text = None @property def row_index(self): @@ -554,6 +495,76 @@ def about(self): return meta +class TextContent(GoogleObject): + + """Docstring for TextElement. """ + + _properties = {'textElements, lists'} + + def __init__(self, presentation=None, page=None, element=None, **kwargs): + self.presentation = presentation + self.page = page + self.element = element + + super(TextContent, self).__init__(**kwargs) + + def __iter__(self): + for text_element in self._text_elements: + yield self.TextElement(self, self.element, **text_element) + + class TextElement(GoogleObject): + + _properties = { + 'startIndex', + 'endIndex', + 'paragraphMarker', + 'textRun', + 'autoText' + } + + def __init__(self, text_content, page_element, **kwargs): + self.text_content = text_content + self.page_element = page_element + super(TextContent.TextElement, self).__init__(**kwargs) + + @property + def start_index(self): + return self._start_index + + @property + def end_index(self): + return self._end_index + + @property + def text(self): + if hasattr(self, '_text_run'): + return self._text_run['content'] + + @text.setter + def text(self, value): + if not self._text: + self.page_element.update(SlidesUpdate.delete_text(self.id)) + + self.page_element.update( + SlidesUpdate.insert_text(self.id, value) + ) + + self._text['raw_text'] = value + + @text.deleter + def text(self): + self.page_element.update( + SlidesUpdate.delete_text() + ) + + def match(self, regex): + """Returns True or False if regular expression + matches the text inside. + """ + if self.text and re.match(regex, self.text): + return True + else: + return False # update requests @@ -576,9 +587,11 @@ def delete_object(obj_id): def replace_all_text(find, replace, case_sensitive=False): return { 'replaceAllText': { - 'findText': find, 'replaceText': replace, - 'matchCase': case_sensitive + 'containsText': { + 'text': find, + 'matchCase': case_sensitive + } } } diff --git a/tests/test_slides.py b/tests/test_slides.py index d123dfe..a7e2fd3 100644 --- a/tests/test_slides.py +++ b/tests/test_slides.py @@ -4,6 +4,7 @@ from google_objects import SlidesAPI from google_objects.slides import Presentation, Page from google_objects.slides import PageElement, Shape, Table +from google_objects.slides import TextContent @pytest.fixture @@ -36,9 +37,21 @@ def test_elements(presentation): assert isinstance(page, Page) for element in page: assert isinstance(element, PageElement) - if isinstance(element, Shape or Table): + if isinstance(element, Table): + for cell in element.cells(): + assert isinstance(cell.text, TextContent) + if '_text' in vars(cell): + for text in cell.text: + text = cell.text + for piece in text: + assert piece.end_index > 0 + + if isinstance(element, Shape): if '_text' in vars(element): - pass + text = element.text + assert isinstance(text, TextContent) + for piece in text: + assert piece.end_index > 0 def test_get_matches(presentation): @@ -46,6 +59,7 @@ def test_get_matches(presentation): with presentation: tags = presentation.get_matches(regex) - # print len(tags) + 'tags' for i, tag in enumerate(tags): - presentation.replace_text(tag, i) + text, info = tag + presentation.replace_text(text, i) + # for i, tag in enumerate(tags): From fb324eb50fe083ff7c93a967bfdf551e5f40340f Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sun, 12 Feb 2017 22:08:01 -0500 Subject: [PATCH 06/51] version 0.0.3 From 668b5c0c225f0c8aecde5554b266e3a083342a82 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sun, 12 Feb 2017 22:08:22 -0500 Subject: [PATCH 07/51] version 0.0.3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6107d59..3589620 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup -version = '0.0.2' +version = '0.0.3' requires = ['google-api-python-client>=1.5.3'] setup_requirements = ['pytest-runner>=2.0'] test_requirements = ['pytest>=2.8.0'] From e94e4c58f5d60aac76b52decf8ad2a9bfd5cd989 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 13 Feb 2017 20:43:02 -0500 Subject: [PATCH 08/51] text inserting and deleting has boundary indexes --- google_objects/slides.py | 47 +++++++++++++++++++++++++++++----------- tests/test_slides.py | 26 +++++++++++++++++++--- 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/google_objects/slides.py b/google_objects/slides.py index 81df43e..26e65b9 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -19,6 +19,11 @@ log = logging.getLogger(__name__) +""" +REMOVE ABOUT() methods on Shape and Table +REMOVE GET_MATCHES() on Presentation +""" + # TODO: # i/ ensure all cell data reflects table row insertion and deletion # ii/ page title and descriptor need to be found and initialized @@ -420,7 +425,7 @@ def type(self): def about(self): meta = super(self.__class__, self).about() - meta['text'] = self.text + meta['text'] = self.text.text return meta @@ -488,7 +493,6 @@ def location(self): def about(self): meta = super(self.table.__class__, self.table).about() meta.update({ - 'text': self.text, 'location': self.location }) log.debug('Cell description: {}'.format(meta)) @@ -543,19 +547,30 @@ def text(self): @text.setter def text(self, value): if not self._text: - self.page_element.update(SlidesUpdate.delete_text(self.id)) + self.page_element.update( + SlidesUpdate.delete_text( + self.page_element.id, + row=getattr(self.page_element, 'start_index', None), + col=getattr(self.page_element, 'end_index', None), + start=self.start_index, + end=self.end_index + ) + ) - self.page_element.update( - SlidesUpdate.insert_text(self.id, value) + update_request = SlidesUpdate.insert_text( + self.id, value, start=self.start_index ) + self.page_element.update(update_request) - self._text['raw_text'] = value + self._text_run['content'] = value @text.deleter def text(self): - self.page_element.update( - SlidesUpdate.delete_text() + obj_id = self.page_element.id + update_request = SlidesUpdate.delete_text( + obj_id, start=self.start_index, end=self.end_index ) + self.page_element.update(update_request) def match(self, regex): """Returns True or False if regular expression @@ -566,6 +581,8 @@ def match(self, regex): else: return False + + # update requests @@ -596,7 +613,7 @@ def replace_all_text(find, replace, case_sensitive=False): } @staticmethod - def insert_text(obj_id, text, row=None, column=None, insertion_index=0): + def insert_text(obj_id, text, row=None, column=None, start=0): return { 'insertText': { 'objectId': obj_id, @@ -605,20 +622,24 @@ def insert_text(obj_id, text, row=None, column=None, insertion_index=0): 'rowIndex': row, 'columnIndex': column }, - 'insertionIndex': insertion_index + 'insertionIndex': start } } @staticmethod - def delete_text(obj_id, row=None, column=None, mode='DELETE_ALL'): + def delete_text(obj_id, row=None, col=None, start=None, end=None, kind='FIXED_RANGE'): return { 'deleteText': { 'objectId': obj_id, 'cellLocation': { 'rowIndex': row, - 'columnIndex': column + 'columnIndex': col + }, + 'text_range': { + 'startIndex': start, + 'endIndex': end + }, - 'deleteMode': mode } } diff --git a/tests/test_slides.py b/tests/test_slides.py index a7e2fd3..d32c836 100644 --- a/tests/test_slides.py +++ b/tests/test_slides.py @@ -57,9 +57,29 @@ def test_elements(presentation): def test_get_matches(presentation): regex = os.getenv('REGEX') - with presentation: - tags = presentation.get_matches(regex) + with presentation as pres: + tags = pres.get_matches(regex) for i, tag in enumerate(tags): text, info = tag - presentation.replace_text(text, i) + print info + element = pres.get_element_by_id(info['id']) + + if isinstance(element, Shape): + if element.text: + for text in element.text: + if text.match(regex): + log.debug('Match in SHAPE:', element.id) + tags.append((text.text, element.about())) + # tags.add(element.text) + + # check all table cells + if isinstance(element, Table): + for cell in element.cells(): + for text in cell.text: + if text.match(regex): + log.debug('Match in TABLE: %s, coords: %s', + cell.table.id, cell.location + ) + # tags.add(cell.text) + tags.append((text.text, cell.about())) # for i, tag in enumerate(tags): From dde8531810764061a9c5277ab18cd7e7c43d019d Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 15 Feb 2017 19:58:34 -0500 Subject: [PATCH 09/51] remove .about from page elements and .get_matches from presentation --- google_objects/slides.py | 59 ++-------------------------------------- tests/test_slides.py | 22 ++++----------- 2 files changed, 7 insertions(+), 74 deletions(-) diff --git a/google_objects/slides.py b/google_objects/slides.py index 26e65b9..bd72996 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -20,7 +20,6 @@ """ -REMOVE ABOUT() methods on Shape and Table REMOVE GET_MATCHES() on Presentation """ @@ -174,39 +173,10 @@ def masters(self): def layouts(self): return [Page(self, **slide) for slide in self._layouts] - def get_matches(self, regex): - """Search all Presentation text-based - elements for matches with regex, returning - a set of (*text, *element_id) tuples - - :regex: a raw regex - :returns: of matches - - """ - # tags = [] - tags = [] + def elements(self): for page in self.slides(): for element in page: - # check shape - if isinstance(element, Shape): - if element.text: - for text in element.text: - if text.match(regex): - log.debug('Match in SHAPE:', element.id) - tags.append((text.text, element.about())) - # tags.add(element.text) - - # check all table cells - if isinstance(element, Table): - for cell in element.cells(): - for text in cell.text: - if text.match(regex): - log.debug('Match in TABLE: %s, coords: %s', - cell.table.id, cell.location - ) - # tags.add(cell.text) - tags.append((text.text, cell.about())) - return tags + yield element def replace_text(self, find, replace, case_sensitive=False): """Add update request for presentation-wide @@ -385,18 +355,6 @@ def delete(self): SlidesUpdate.delete_object(self._id) ) - def about(self): - """returns dict returning vital information - about page element - """ - meta = { - 'kind': self.__class__.__name__.upper(), - 'id': self.id, - 'size': self.size - } - log.debug(meta) - return meta - class Shape(PageElement): @@ -423,11 +381,6 @@ def text(self): def type(self): return self._shape_type - def about(self): - meta = super(self.__class__, self).about() - meta['text'] = self.text.text - return meta - class Table(PageElement): @@ -490,14 +443,6 @@ def column_index(self): def location(self): return (self.row_index, self.column_index) - def about(self): - meta = super(self.table.__class__, self.table).about() - meta.update({ - 'location': self.location - }) - log.debug('Cell description: {}'.format(meta)) - return meta - class TextContent(GoogleObject): diff --git a/tests/test_slides.py b/tests/test_slides.py index d32c836..9ca144c 100644 --- a/tests/test_slides.py +++ b/tests/test_slides.py @@ -54,32 +54,20 @@ def test_elements(presentation): assert piece.end_index > 0 -def test_get_matches(presentation): +def test_text(presentation): regex = os.getenv('REGEX') - with presentation as pres: - tags = pres.get_matches(regex) - for i, tag in enumerate(tags): - text, info = tag - print info - element = pres.get_element_by_id(info['id']) - + with presentation: + for element in presentation: if isinstance(element, Shape): if element.text: for text in element.text: if text.match(regex): - log.debug('Match in SHAPE:', element.id) - tags.append((text.text, element.about())) - # tags.add(element.text) + pass # check all table cells if isinstance(element, Table): for cell in element.cells(): for text in cell.text: if text.match(regex): - log.debug('Match in TABLE: %s, coords: %s', - cell.table.id, cell.location - ) - # tags.add(cell.text) - tags.append((text.text, cell.about())) - # for i, tag in enumerate(tags): + pass From d6c84bf1768058a888a5d2527546f813d22a1eb6 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 21 Feb 2017 20:18:10 -0500 Subject: [PATCH 10/51] added __str__ mthd to Block, updated README for sheets and slides --- README.md | 103 +++++++++++++++++++++++++++++++++++++-- google_objects/drive.py | 12 +---- google_objects/sheets.py | 3 ++ google_objects/slides.py | 2 + 4 files changed, 104 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 90bb39f..2f6c2cc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Google Objects Thin, pythonic OO wrapper around Google's "google-api-python-client" library. -Currently only supports Python 2.7. :snake::snake::snake: +Currently supports Python 2.7 :snake::snake::snake: ## Installation ```bash @@ -8,12 +8,11 @@ Currently only supports Python 2.7. :snake::snake::snake: ``` ## Usage -Requires a valid Google API Credentials object from Google's excellent oauth2lib library, for more information visit [here](https://developers.google.com/identity/protocols/OAuth2). +Requires a valid Google API Credentials object from Google's excellent oauth2lib library. For more information, visit [here](https://developers.google.com/identity/protocols/OAuth2). ### Google Drive -- [x] Retrieve about information: - +- [x] Retrieve drive 'About' information: ```python from google_objects import DriveAPI @@ -29,8 +28,8 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib # ... ``` -- [x] List files by type: +- [x] List files in drive by type: ```python files_by_type = { @@ -49,3 +48,97 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib # ... ``` + +- [x] Copy and share file: + +```python + file = gdrive.get_file('FILE_ID') + new_file = file.copy('NEW_FILE_NAME', ['PARENT_FOLDER_1', 'PARENT_FOLDER_2']) + + # allow myfriend@hotmail.com to view + permission = new_file.add_permission('myfriend@hotmail.com') + + # print newly created permission information + print permission.role, permission.type, permission.email +``` + +### Google Slides + +- [x] Retrieve presentation and loop through elements: + +```python + from google_objects import SlidesAPI + + gslides = SlidesAPI(OAUTHLIB_CREDS) + presentation = gslides.get_presentation('PRESENTATION_ID') + + # print slides attributes + for slide in presentation: + print slide.id + + for element in slide: # equivalent to 'for element in presentation.elements()' + print element.type + # Shape, Table, etc + +``` + +- [x] Check text in shape: + +```python + shape = presentation.get_element_by_id('SHAPE_ID') + for segment in shape.text: + print segment.text + +``` + +- [x] Batch update every cell in table: + +```python + # use with to perform batch updates in block + with presentation as pres: + table = pres.get_element_by_id('TABLE_ID') + for cell in table: + print cell.location # tuple containing cell location + for segment in cell.text: + # update cell + segment.text = 'UPDATED_VALUE' + +``` + +### Google Sheets + +- [x] Retrieve spreadsheet and loop through sheets: + +```python + from google_objects import SheetsAPI + + gsheets = SheetsAPI(OAUTHLIB_CREDS) + spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') + + for sheet in spreadsheet: + print sheet.id, sheet.title +``` + +- [x] Get sheet by ID and return its full block of values: + +```python + sheet = spreadsheet['SHEET_ID'] + values = sheet.values() +``` + +- [x] Get named range value block: + +```python + named_ranges = spreadsheet.named_ranges('SHEET_NAME!A:C') + for rng in named_range: + values = named_range.get_block() +``` + +- [x] Loop through values block: + +```python + values = spreadsheet.get_range('SHEET_NAME!A:C') + for row in values: + for cell in row: + print cell.value +``` diff --git a/google_objects/drive.py b/google_objects/drive.py index bcf778e..2096e6e 100644 --- a/google_objects/drive.py +++ b/google_objects/drive.py @@ -274,17 +274,7 @@ def copy(self, name=None, parents=[]): return self.client.copy_file(self.id, new) def list_permissions(self): - """Returns list of permission for this - drive file, return empty if caller is - not authorized to share. - """ - - permissions = [] - - for permission in self._permissions: - permissions.append(Permission(self, **permission)) - - return permissions + return [Permission(self, **each) for each in self._permissions] def add_permission(self, email, **kwargs): """initializes new permission objects and diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 3058be3..d91c8cf 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -388,3 +388,6 @@ def match(self, regex): if self.value and re.match(regex, self.value): return True return False + + def __str__(self): + return self.value diff --git a/google_objects/slides.py b/google_objects/slides.py index bd72996..2d317ac 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -526,6 +526,8 @@ def match(self, regex): else: return False + def __str__(self): + print self.text # update requests From f10b3ec974b0d7ee78971963a30f014568141223 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 22 Feb 2017 14:52:44 -0500 Subject: [PATCH 11/51] removed create_presentation method on --- google_objects/drive.py | 4 ++-- google_objects/slides.py | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/google_objects/drive.py b/google_objects/drive.py index 2096e6e..80c4dc8 100644 --- a/google_objects/drive.py +++ b/google_objects/drive.py @@ -376,7 +376,7 @@ def email(self): @email.setter def email(self, value): - # TODO: - # add update call if _id is present + # TODO: + # add update call if _id is present if len(value.split('@')) is 2: self._email_address = value diff --git a/google_objects/slides.py b/google_objects/slides.py index 2d317ac..4fc7c28 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -30,8 +30,6 @@ # iv/ add Text nested class for Shape & Table # v/ generate elements from PageElement constructor using __subclasses__ - # vii/ **have API create method return blank new presentation, all features added via updating - class SlidesAPI(GoogleAPI): @@ -49,8 +47,6 @@ def __init__(self, credentials=None, api_key=None): super(SlidesAPI, self).__init__(credentials, api_key) self._resource = self.build('slides', 'v1') - def create_presentation(self): - pass def get_presentation(self, presentation_id): """Returns a Presentation Object From 1cd768dfb547216408165050e00e66165593b312 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 27 Feb 2017 17:45:03 -0500 Subject: [PATCH 12/51] made rows and cells Block properties instead of methods --- README.md | 6 ++--- google_objects/sheets.py | 50 +++++++++++++++++++++++++++++++--------- google_objects/slides.py | 8 ------- tests/test_drive.py | 4 ---- 4 files changed, 42 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 2f6c2cc..39857bb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Currently supports Python 2.7 :snake::snake::snake: ## Usage Requires a valid Google API Credentials object from Google's excellent oauth2lib library. For more information, visit [here](https://developers.google.com/identity/protocols/OAuth2). -### Google Drive +### Google Drive v3 - [x] Retrieve drive 'About' information: @@ -62,7 +62,7 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib print permission.role, permission.type, permission.email ``` -### Google Slides +### Google Slides v1 - [x] Retrieve presentation and loop through elements: @@ -105,7 +105,7 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib ``` -### Google Sheets +### Google Sheets v4 - [x] Retrieve spreadsheet and loop through sheets: diff --git a/google_objects/sheets.py b/google_objects/sheets.py index d91c8cf..b60e8ef 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -22,6 +22,7 @@ # ii/ page title and descriptor need to be found and initialized # iii/ change .from_existing to .from_raw +def grid_to_a1(): class SheetsAPI(GoogleAPI): @@ -78,14 +79,10 @@ def append_values(self, spreadsheet_id, rng, values): def push_updates(self, spreadsheet_id, updates): spreadsheets = self._resource.spreadsheets() spreadsheets.batchUpdate( - presentationId=spreadsheet_id, + spreadsheetId=spreadsheet_id, body={'requests': updates} - ) - spreadsheets.execute() - - - -# objects + ).execute() + # spreadsheets.execute() class Spreadsheet(GoogleObject): @@ -133,7 +130,7 @@ def title(self, value): self._properties['title'] = value def sheets(self): - return [ sheet for sheet in self.yield_sheets() ] + return [sheet for sheet in self.yield_sheets()] def yield_sheets(self): for sheet in self._sheets: @@ -329,13 +326,18 @@ def yield_cells(self): for val in row: yield self.Cell(self, val) + @property def cells(self): return [cell for cell in self.yield_cells()] - def rows(self): + def yield_rows(self): for row in self._values: yield [self.Cell(self, val) for val in row] + @property + def rows(self): + return [row for row in self.yield_rows()] + def map(self, func): """Returns of block sum""" for row in self._rows: @@ -389,5 +391,31 @@ def match(self, regex): return True return False - def __str__(self): - return self.value + +class SheetsUpdate(object): + + """creates google-api-wrapper ready batchUpdate + request dictionaries + """ + + @staticmethod + def format_row(sheet_id, start, end, red=0, green=0, blue=0): + return { + "repeatCell": { + "range": { + "sheetId": sheet_id, + "startRowIndex": start, + "endRowIndex": end + }, + "cell": { + "userEnteredFormat": { + "backgroundColor": { + "red": red, + "green": green, + "blue": blue + } + } + }, + "fields": "userEnteredFormat(backgroundColor)" + } + } diff --git a/google_objects/slides.py b/google_objects/slides.py index 4fc7c28..afb8d0a 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -9,7 +9,6 @@ import re import logging -import httplib2 from apiclient.errors import HttpError @@ -84,10 +83,6 @@ def push_updates(self, presentation_id, updates): ).execute() - -# objects - - class Presentation(GoogleObject): """Google Presentation Object, @@ -526,9 +521,6 @@ def __str__(self): print self.text -# update requests - - class SlidesUpdate(object): """creates google-api-wrapper ready batchUpdate diff --git a/tests/test_drive.py b/tests/test_drive.py index 433814d..be3762d 100644 --- a/tests/test_drive.py +++ b/tests/test_drive.py @@ -42,10 +42,6 @@ def test_permissions(drive_file): type='user', ) - # test properties - print 'as dict:' - print permission.__dict__ - assert hasattr(permission, 'id') assert hasattr(permission, 'email') assert hasattr(permission, 'role') From f759dc1875d80a6220b57686ab23e25204014791 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 27 Feb 2017 17:48:14 -0500 Subject: [PATCH 13/51] updated sheets test --- google_objects/sheets.py | 2 ++ tests/test_sheets.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index b60e8ef..e328756 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -23,6 +23,8 @@ # iii/ change .from_existing to .from_raw def grid_to_a1(): + pass + class SheetsAPI(GoogleAPI): diff --git a/tests/test_sheets.py b/tests/test_sheets.py index 14300d1..e116ad4 100644 --- a/tests/test_sheets.py +++ b/tests/test_sheets.py @@ -59,7 +59,7 @@ def test_sheets(spreadsheet): assert isinstance(block, Block) # test rows - for row in block.rows(): + for row in block.rows: assert hasattr(row, '__iter__') for cell in row: assert isinstance(cell, Block.Cell) From 6d1a5de1c4d9902a9ab95845805b5310157ea6a1 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 28 Feb 2017 13:54:11 -0500 Subject: [PATCH 14/51] added Block updating with context manager --- google_objects/sheets.py | 87 +++++++++++++++++++++++++++++++--------- 1 file changed, 67 insertions(+), 20 deletions(-) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index e328756..0962d3e 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -22,8 +22,20 @@ # ii/ page title and descriptor need to be found and initialized # iii/ change .from_existing to .from_raw -def grid_to_a1(): - pass + +def _grid_to_a1(sheet_name, start, end): + start_row, start_col = start + end_row, end_col = end + + start_row_a1 = start_row + 1 + start_col_a1 = chr(start_col % 26 + 65) + end_row_a1 = end_row + end_col_a1 = chr(end_col % 26 + 64) + + return '\'{}\'!{}{}:{}{}'.format( + sheet_name, start_col_a1, start_row_a1, + end_col_a1, end_row_a1 + ) class SheetsAPI(GoogleAPI): @@ -60,6 +72,16 @@ def get_values(self, spreadsheet_id, range_name): return Block.from_existing(data, client=self) + def update_values(self, spreadsheet_id, range_name, values, format='RAW'): + data = self._resource.spreadsheets().values().update( + spreadsheetId=spreadsheet_id, + range=range_name, + valueInputOption=format, + body={'values': values} + ).execute() + + return data + def append_values(self, spreadsheet_id, rng, values): """Append Values to Range. @@ -84,7 +106,6 @@ def push_updates(self, spreadsheet_id, updates): spreadsheetId=spreadsheet_id, body={'requests': updates} ).execute() - # spreadsheets.execute() class Spreadsheet(GoogleObject): @@ -228,15 +249,9 @@ def as_a1(self): sheet_name = sheet.title break - start_row_a1 = self.start_row + 1 - start_col_a1 = chr(self.start_column % 26 + 65) - end_row_a1 = self.end_row - end_col_a1 = chr(self.end_column % 26 + 64) - - return '\'{}\'!{}{}:{}{}'.format( - sheet_name, start_col_a1, start_row_a1, - end_col_a1, end_row_a1 - ) + start = (self.start_row, self.start_column) + end = (self.end_row, self.end_column) + return _grid_to_a1(sheet_name, start, end) def get_block(self): return self.spreadsheet.get_range(self.as_a1()) @@ -323,23 +338,44 @@ def from_existing(cls, data, client, spreadsheet=None): def __iter__(self): return self.yield_cells() + def __enter__(self): + return self + + def __exit__(self, ex_type, ex_val, tb): + self.update() + + def update(self): + self.client.update_values(self.spreadsheet.id, self._range, self.raw_data) + def yield_cells(self): - for row in self._values: - for val in row: - yield self.Cell(self, val) + for row in self.yield_rows(): + for cell in row: + yield cell @property def cells(self): return [cell for cell in self.yield_cells()] def yield_rows(self): - for row in self._values: - yield [self.Cell(self, val) for val in row] + for i, row in enumerate(self._values): + yield [self.Cell(self, val, (i, j)) for j, val in enumerate(row)] @property def rows(self): return [row for row in self.yield_rows()] + @property + def raw_data(self): + data = [] + for row in self.yield_rows(): + data.append([cell.value for cell in row]) + + return data + + @property + def range(self): + return self._range + def map(self, func): """Returns of block sum""" for row in self._rows: @@ -361,15 +397,26 @@ class Cell(object): is initially """ - def __init__(self, block, value): - self._block = block - self.value = value + def __init__(self, block, value, location): + self.block = block + self._value = value + self.location = location + self.row = location[0] + self.col = location[1] def __repr__(self): return self.__str__() def __str__(self): return self.value.encode('utf-8').strip() + @property + def value(self): + return self._value + + @value.setter + def value(self, val): + self.block._values[self.row][self.col] = val + self._value = val @property def is_numerical(self): From 6997ff0b2ca1276712363b9902ca19a02117ea95 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Thu, 6 Apr 2017 17:00:38 -0400 Subject: [PATCH 15/51] removed print() statements --- google_objects/__init__.py | 1 + google_objects/sheets.py | 7 +++++-- google_objects/slides.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 0dd11d9..b359fd5 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -28,6 +28,7 @@ class GoogleAPI(object): as well. """ + def __init__(self, credentials=None, api_key=None): self.credentials = credentials self.api_key = api_key diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 0962d3e..4fcffcd 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -405,10 +405,13 @@ def __init__(self, block, value, location): self.col = location[1] def __repr__(self): - return self.__str__() + return str(self) def __str__(self): - return self.value.encode('utf-8').strip() + if isinstance(self.value, unicode): + return self.value.encode('utf-8').strip() + return str(self.value) + @property def value(self): return self._value diff --git a/google_objects/slides.py b/google_objects/slides.py index afb8d0a..df6543f 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -518,7 +518,7 @@ def match(self, regex): return False def __str__(self): - print self.text + return self.text class SlidesUpdate(object): From 8af5551f5ae831b3044a92517ec373ece023daac Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Thu, 18 May 2017 11:39:28 -0400 Subject: [PATCH 16/51] moved batch updating trigger to its own function --- google_objects/sheets.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 4fcffcd..944ef49 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -135,10 +135,11 @@ def __enter__(self): return self def __exit__(self, exception_type, exception_value, traceback): - if self.__updates: - self.client.push_updates(self._id, self._updates) - # TODO: add success handlers - del self._updates[:] + # if self.__updates: + # self.client.push_updates(self._id, self._updates) + # # TODO: add success handlers + # del self._updates[:] + self.update() @property def id(self): @@ -190,6 +191,12 @@ def set_sheet_id(rng): return [self.NamedRange(self, each) for each in map(set_sheet_id, self._named_ranges)] + def update(self): + if self.__updates: + self.client.push_updates(self._id, self._updates) + # TODO: add success handlers + del self._updates[:] + def __getitem__(self, sheet_id): """Returns sheet within presentation identified by the given argument, raises TypeError From 4b24429b53597a953139a5a046097a9397242da2 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 24 May 2017 15:51:48 -0400 Subject: [PATCH 17/51] added Service account shortcut to GoogleAPI base --- google_objects/__init__.py | 19 +++++++++++++++++++ google_objects/sheets.py | 1 + requirements.txt | 1 + tests/conftest.py | 12 ++---------- tests/test_drive.py | 2 +- tests/test_sheets.py | 2 +- tests/test_slides.py | 3 +-- 7 files changed, 26 insertions(+), 14 deletions(-) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index b359fd5..2ecf055 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +import os import logging import httplib2 @@ -20,6 +21,15 @@ def emit(self, record): logging.getLogger(__name__).addHandler(NullHandler()) +SCOPES = { + 'drive', + 'spreadsheets' +} + + +def _gen_scopes(scopes): + return ['https://www.googleapis.com/auth/' + each for each in scopes] + class GoogleAPI(object): @@ -43,6 +53,15 @@ def build(self, service, version, **kwargs): http = self.credentials.authorize(httplib2.Http()) return discovery.build(service, version, http=http, **kwargs) + @classmethod + def from_service_account(cls, creds_path, scope=SCOPES, user=None): + from oauth2client.service_account import ServiceAccountCredentials as S + + creds_path = os.path.expanduser(creds_path) + creds = S.from_json_keyfile_name(creds_path, _gen_scopes(scope)) + creds = creds.create_delegated(user) + return cls(creds) + class GoogleObject(object): diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 944ef49..79c54ad 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -95,6 +95,7 @@ def append_values(self, spreadsheet_id, rng, values): spreadsheetId=spreadsheet_id, range=rng, valueInputOption='USER_ENTERED', + insertDataOption='INSERT_ROWS', body={'values': values} ).execute() diff --git a/requirements.txt b/requirements.txt index d9988fc..339b353 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,7 @@ py==1.4.31 pyasn1==0.1.9 pyasn1-modules==0.0.8 pytest==3.0.2 +pytest-runner==2.9 rsa==3.4.2 simplejson==3.8.2 six==1.10.0 diff --git a/tests/conftest.py b/tests/conftest.py index b211815..27074e5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,19 +1,12 @@ import pytest import os -from oauth2client.service_account import ServiceAccountCredentials -from oauth2client.client import OAuth2Credentials - - GOOGLE_SERVICE_NAME = os.getenv('GOOGLE_CREDENTIALS') GOOGLE_SERVICE_PATH = os.getenv('GOOGLE_SERVICE_PATH') ADMIN_EMAIL = os.getenv('ADMIN_EMAIL') def _find_credentials(name=GOOGLE_SERVICE_NAME): - # home_dir = os.path.expanduser('~') - # credential_dir = os.path.join(home_dir, GOOGLE_SERVICE_PATH) - # credential_path = os.path.join(credential_dir, name) return os.path.expanduser(GOOGLE_SERVICE_NAME) @@ -24,7 +17,6 @@ def credentials(request): """ creds = _find_credentials() - scopes = 'https://www.googleapis.com/auth/drive' + scope = ['drive'] - return ServiceAccountCredentials\ - .from_json_keyfile_name(creds, scopes).create_delegated(ADMIN_EMAIL) + return (creds, scope, ADMIN_EMAIL) diff --git a/tests/test_drive.py b/tests/test_drive.py index be3762d..40fc071 100644 --- a/tests/test_drive.py +++ b/tests/test_drive.py @@ -12,7 +12,7 @@ @pytest.fixture def client(credentials): - return DriveAPI(credentials) + return DriveAPI.from_service_account(*credentials) def test_file_list(client): diff --git a/tests/test_sheets.py b/tests/test_sheets.py index e116ad4..c928f9d 100644 --- a/tests/test_sheets.py +++ b/tests/test_sheets.py @@ -17,7 +17,7 @@ @pytest.fixture def client(credentials): - return SheetsAPI(credentials) + return SheetsAPI.from_service_account(*credentials) @pytest.fixture diff --git a/tests/test_slides.py b/tests/test_slides.py index 9ca144c..307b6b3 100644 --- a/tests/test_slides.py +++ b/tests/test_slides.py @@ -9,8 +9,7 @@ @pytest.fixture def client(credentials): - api = SlidesAPI(credentials) - return api + return SlidesAPI.from_service_account(*credentials) def test_get_presentation(client): From a9e305d710a0f3d921d7bddb07cefb56670aef7c Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Thu, 25 May 2017 17:50:58 -0400 Subject: [PATCH 18/51] removed Cell object, added Block.append() --- google_objects/__init__.py | 4 +- google_objects/sheets.py | 89 +++++++------------------------------- tests/test_sheets.py | 10 ----- 3 files changed, 19 insertions(+), 84 deletions(-) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 2ecf055..95d983b 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -59,7 +59,9 @@ def from_service_account(cls, creds_path, scope=SCOPES, user=None): creds_path = os.path.expanduser(creds_path) creds = S.from_json_keyfile_name(creds_path, _gen_scopes(scope)) - creds = creds.create_delegated(user) + if user: + creds = creds.create_delegated(user) + return cls(creds) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 79c54ad..432c65e 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -353,7 +353,10 @@ def __exit__(self, ex_type, ex_val, tb): self.update() def update(self): - self.client.update_values(self.spreadsheet.id, self._range, self.raw_data) + self.client.update_values(self.spreadsheet.id, self._range, self.values) + + def append(self, data): + self.client.append_values(self.spreadsheet.id, self._range, data) def yield_cells(self): for row in self.yield_rows(): @@ -365,91 +368,31 @@ def cells(self): return [cell for cell in self.yield_cells()] def yield_rows(self): - for i, row in enumerate(self._values): - yield [self.Cell(self, val, (i, j)) for j, val in enumerate(row)] + for row in self._values: + yield row @property def rows(self): return [row for row in self.yield_rows()] @property - def raw_data(self): - data = [] - for row in self.yield_rows(): - data.append([cell.value for cell in row]) + def values(self): + return self._values - return data + @property + def raw_data(self): + # legacy, will be deprecated soon + return self.values @property def range(self): return self._range - def map(self, func): - """Returns of block sum""" - for row in self._rows: - for cell in row: - cell.value = func(cell) - - @property - def is_numerical(self): - for row in self._values: - for val in row: - cell = self.Cell(self, val) - if not cell.is_numerical: - return False - return True + def __getitem__(self, key): + return self._values[key] - class Cell(object): - - """Represents a Google Sheets Cell, each value - is initially - """ - - def __init__(self, block, value, location): - self.block = block - self._value = value - self.location = location - self.row = location[0] - self.col = location[1] - - def __repr__(self): - return str(self) - - def __str__(self): - if isinstance(self.value, unicode): - return self.value.encode('utf-8').strip() - return str(self.value) - - @property - def value(self): - return self._value - - @value.setter - def value(self, val): - self.block._values[self.row][self.col] = val - self._value = val - - @property - def is_numerical(self): - """Determines if value is a number, removes - '$', ',', '.' in case of financial formatting. - """ - try: - Decimal(self.value) - return True - except InvalidOperation: - return False - - def make_numerical(self): - self.value = re.sub(r'[^\d.]', '', self.value) - - def match(self, regex): - """Returns True or False if regular expression - matches the text inside. - """ - if self.value and re.match(regex, self.value): - return True - return False + def __setitem__(self, key, item): + self._values[key] = item class SheetsUpdate(object): diff --git a/tests/test_sheets.py b/tests/test_sheets.py index c928f9d..95ab605 100644 --- a/tests/test_sheets.py +++ b/tests/test_sheets.py @@ -3,12 +3,8 @@ import pytest import os -import sys import logging -from oauth2client.service_account import ServiceAccountCredentials -from oauth2client.client import OAuth2Credentials - from google_objects import SheetsAPI from google_objects.sheets import Spreadsheet, Sheet, Block @@ -42,10 +38,6 @@ def test_spreadsheet(spreadsheet): block = sheet.values() assert isinstance(block, Block) - # test cells - for cell in block: - assert isinstance(cell, Block.Cell) - def test_sheets(spreadsheet): for sheet in spreadsheet: @@ -61,5 +53,3 @@ def test_sheets(spreadsheet): # test rows for row in block.rows: assert hasattr(row, '__iter__') - for cell in row: - assert isinstance(cell, Block.Cell) From c5330b1457422feca8bb71001ea860211675cfc7 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Fri, 26 May 2017 16:57:53 -0400 Subject: [PATCH 19/51] sheets can now be accessed by name --- google_objects/sheets.py | 42 +++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 432c65e..3e82d6e 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -157,6 +157,24 @@ def title(self, value): def sheets(self): return [sheet for sheet in self.yield_sheets()] + def get_sheet_by_id(self, sheet_id): + """Returns sheet within presentation identified + by the given argument, raises TypeError + if such element isn't present. + """ + for sheet in self.yield_sheets(): + if sheet_id == sheet.id: + return sheet + + raise ValueError + + def get_sheet_by_name(self, name): + for sheet in self.yield_sheets(): + if name == sheet.title: + return sheet + + raise ValueError + def yield_sheets(self): for sheet in self._sheets: yield Sheet.from_existing(sheet, self) @@ -198,16 +216,14 @@ def update(self): # TODO: add success handlers del self._updates[:] - def __getitem__(self, sheet_id): - """Returns sheet within presentation identified - by the given argument, raises TypeError - if such element isn't present. - """ - for sheet in self.yield_sheets(): - if sheet_id == sheet.id: - return sheet - - raise TypeError + def __getitem__(self, key): + try: + if key.isdigit(): + return self.get_sheet_by_id(key) + else: + return self.get_sheet_by_name(key) + except ValueError: + raise TypeError('Sheet not found') class NamedRange(object): """represents a NamedRange resource, can @@ -309,6 +325,10 @@ def id(self): def title(self): return self._properties.get('title') + @property + def name(self): + return self.title + @title.setter def title(self, value): self._properties['title'] = value @@ -344,7 +364,7 @@ def from_existing(cls, data, client, spreadsheet=None): return cls(client, spreadsheet, **new_data) def __iter__(self): - return self.yield_cells() + return self.yield_rows() def __enter__(self): return self From 66a5db91bf09dab8c032fdf6bf5792e7f7ee1ef2 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 27 May 2017 14:27:50 -0400 Subject: [PATCH 20/51] updated README --- README.md | 61 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 39857bb..004b473 100644 --- a/README.md +++ b/README.md @@ -33,18 +33,18 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib ```python files_by_type = { - 'slides': gdrive.list_files('presentation'), + 'slides': gdrive.list_files('presentation'), 'folders': gdrive.list_files('folder'), 'spreadsheets': gdrive.list_files('spreadsheets'), } for file in files_by_type['folders']: - print file.id - print file.name + print file.id + print file.name for file in files_by_type['spreadsheets']: - # prints list of parent folder IDs - print file.parents + # prints list of parent folder IDs + print file.parents # ... ``` @@ -74,11 +74,11 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib # print slides attributes for slide in presentation: - print slide.id + print slide.id - for element in slide: # equivalent to 'for element in presentation.elements()' - print element.type - # Shape, Table, etc + for element in slide: # equivalent to 'for element in presentation.elements()' + print element.type + # Shape, Table, etc ``` @@ -87,7 +87,7 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib ```python shape = presentation.get_element_by_id('SHAPE_ID') for segment in shape.text: - print segment.text + print segment.text ``` @@ -96,12 +96,12 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib ```python # use with to perform batch updates in block with presentation as pres: - table = pres.get_element_by_id('TABLE_ID') - for cell in table: - print cell.location # tuple containing cell location - for segment in cell.text: - # update cell - segment.text = 'UPDATED_VALUE' + table = pres.get_element_by_id('TABLE_ID') + for cell in table: + print cell.location # tuple containing cell location + for segment in cell.text: + # update cell + segment.text = 'UPDATED_VALUE' ``` @@ -116,13 +116,13 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') for sheet in spreadsheet: - print sheet.id, sheet.title + print sheet.id, sheet.title ``` -- [x] Get sheet by ID and return its full block of values: +- [x] Get sheet by name and return its full block of values: ```python - sheet = spreadsheet['SHEET_ID'] + sheet = spreadsheet['Sheet 1'] values = sheet.values() ``` @@ -131,14 +131,27 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib ```python named_ranges = spreadsheet.named_ranges('SHEET_NAME!A:C') for rng in named_range: - values = named_range.get_block() + values = named_range.get_block() ``` -- [x] Loop through values block: +- [x] Update values block: ```python values = spreadsheet.get_range('SHEET_NAME!A:C') - for row in values: - for cell in row: - print cell.value + # loop through rows + for i, row in enumerate(values): + values[i] = [1, 2, 3] + print row + values.update() + + # you can also use the slice syntax for updating.. + values[2:5] = [[1,2,4], [4, 5, 6], [6, 7, 8]] + values.update() +``` + +- [x] Append to values block: + +```python + to_append = [[1, 2, 3], [4, 5, 6]] + values.append(to_append) ``` From d13f279d355a5ab09d858a1a92eee0b6bf887634 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 27 May 2017 14:35:20 -0400 Subject: [PATCH 21/51] updated README formatting --- README.md | 145 ++++++++++++++++++++++++++---------------------------- 1 file changed, 71 insertions(+), 74 deletions(-) diff --git a/README.md b/README.md index 004b473..67b46bf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Currently supports Python 2.7 :snake::snake::snake: ## Installation ```bash - $ pip install google-objects +$ pip install google-objects ``` ## Usage @@ -15,51 +15,51 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib - [x] Retrieve drive 'About' information: ```python - from google_objects import DriveAPI +from google_objects import DriveAPI - gdrive = DriveAPI(OAUTH2LIB_CREDS) - about = gdrive.get_about() +gdrive = DriveAPI(OAUTH2LIB_CREDS) +about = gdrive.get_about() - print about.email - print about.name +print about.email +print about.name - # prints link to profile photo - print about.photo +# prints link to profile photo +print about.photo - # ... +# ... ``` - [x] List files in drive by type: ```python - files_by_type = { - 'slides': gdrive.list_files('presentation'), - 'folders': gdrive.list_files('folder'), - 'spreadsheets': gdrive.list_files('spreadsheets'), - } +files_by_type = { + 'slides': gdrive.list_files('presentation'), + 'folders': gdrive.list_files('folder'), + 'spreadsheets': gdrive.list_files('spreadsheets'), +} - for file in files_by_type['folders']: - print file.id - print file.name +for file in files_by_type['folders']: + print file.id + print file.name - for file in files_by_type['spreadsheets']: - # prints list of parent folder IDs - print file.parents +for file in files_by_type['spreadsheets']: + # prints list of parent folder IDs + print file.parents - # ... +# ... ``` - [x] Copy and share file: ```python - file = gdrive.get_file('FILE_ID') - new_file = file.copy('NEW_FILE_NAME', ['PARENT_FOLDER_1', 'PARENT_FOLDER_2']) - - # allow myfriend@hotmail.com to view - permission = new_file.add_permission('myfriend@hotmail.com') - - # print newly created permission information - print permission.role, permission.type, permission.email +file = gdrive.get_file('FILE_ID') +new_file = file.copy('NEW_FILE_NAME', ['PARENT_FOLDER_1', 'PARENT_FOLDER_2']) + +# allow myfriend@hotmail.com to view +permission = new_file.add_permission('myfriend@hotmail.com') + +# print newly created permission information +print permission.role, permission.type, permission.email ``` ### Google Slides v1 @@ -67,42 +67,39 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib - [x] Retrieve presentation and loop through elements: ```python - from google_objects import SlidesAPI +from google_objects import SlidesAPI - gslides = SlidesAPI(OAUTHLIB_CREDS) - presentation = gslides.get_presentation('PRESENTATION_ID') +gslides = SlidesAPI(OAUTHLIB_CREDS) +presentation = gslides.get_presentation('PRESENTATION_ID') - # print slides attributes - for slide in presentation: - print slide.id +# print slides attributes +for slide in presentation: + print slide.id - for element in slide: # equivalent to 'for element in presentation.elements()' - print element.type - # Shape, Table, etc - + for element in slide: # equivalent to 'for element in presentation.elements()' + print element.type + # Shape, Table, etc ``` - [x] Check text in shape: ```python - shape = presentation.get_element_by_id('SHAPE_ID') - for segment in shape.text: - print segment.text - +shape = presentation.get_element_by_id('SHAPE_ID') +for segment in shape.text: + print segment.text ``` - [x] Batch update every cell in table: ```python - # use with to perform batch updates in block - with presentation as pres: - table = pres.get_element_by_id('TABLE_ID') - for cell in table: - print cell.location # tuple containing cell location - for segment in cell.text: - # update cell - segment.text = 'UPDATED_VALUE' - +# use with to perform batch updates in block +with presentation as pres: + table = pres.get_element_by_id('TABLE_ID') + for cell in table: + print cell.location # tuple containing cell location + for segment in cell.text: + # update cell + segment.text = 'UPDATED_VALUE' ``` ### Google Sheets v4 @@ -110,48 +107,48 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib - [x] Retrieve spreadsheet and loop through sheets: ```python - from google_objects import SheetsAPI +from google_objects import SheetsAPI - gsheets = SheetsAPI(OAUTHLIB_CREDS) - spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') +gsheets = SheetsAPI(OAUTHLIB_CREDS) +spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') - for sheet in spreadsheet: - print sheet.id, sheet.title +for sheet in spreadsheet: + print sheet.id, sheet.title ``` - [x] Get sheet by name and return its full block of values: ```python - sheet = spreadsheet['Sheet 1'] - values = sheet.values() +sheet = spreadsheet['Sheet 1'] +values = sheet.values() ``` - [x] Get named range value block: ```python - named_ranges = spreadsheet.named_ranges('SHEET_NAME!A:C') - for rng in named_range: - values = named_range.get_block() +named_ranges = spreadsheet.named_ranges('SHEET_NAME!A:C') +for rng in named_range: + values = named_range.get_block() ``` - [x] Update values block: ```python - values = spreadsheet.get_range('SHEET_NAME!A:C') - # loop through rows - for i, row in enumerate(values): - values[i] = [1, 2, 3] - print row - values.update() - - # you can also use the slice syntax for updating.. - values[2:5] = [[1,2,4], [4, 5, 6], [6, 7, 8]] - values.update() +values = spreadsheet.get_range('SHEET_NAME!A:C') +# loop through rows +for i, row in enumerate(values): + values[i] = [1, 2, 3] + print row +values.update() + +# you can also use the slice syntax for updating.. +values[2:5] = [[1,2,4], [4, 5, 6], [6, 7, 8]] +values.update() ``` - [x] Append to values block: ```python - to_append = [[1, 2, 3], [4, 5, 6]] - values.append(to_append) +to_append = [[1, 2, 3], [4, 5, 6]] +values.append(to_append) ``` From b3560d1f801639dfcc2988ef91f47e5812a2da59 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 6 Jun 2017 15:26:46 -0400 Subject: [PATCH 22/51] added spreadsheet creation functionality --- google_objects/sheets.py | 74 +++++++++++++++++++++++++++++----------- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 3e82d6e..bf9f06e 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -23,6 +23,34 @@ # iii/ change .from_existing to .from_raw +def _value_to_cell(val): + if str(val).isdigit(): + try: + return {'userEnteredValue': {'numberValue': float(val)}} + except: + return {'userEnteredValue': {'numberValue': int(val)}} + return {'userEnteredValue': {'stringValue': str(val)}} + + +def _cells_to_row(cells): + return [_value_to_cell(cell) for cell in cells] + + +def _format_sheet(sheet): + title = sheet.get('title', 'NEW SHEET') + values = sheet.get('values', []) + return { + 'properties': { + 'title': title + }, + 'data': { + 'rowData': [ + {'values': _cells_to_row(val)} for val in values + ] + } + } + + def _grid_to_a1(sheet_name, start, end): start_row, start_col = start end_row, end_col = end @@ -62,6 +90,16 @@ def get_spreadsheet(self, id): return Spreadsheet.from_existing(data, self) + def create_spreadsheet(self, sheets=[], **kwargs): + data = self._resource.spreadsheets().create( + body={ + 'properties': kwargs, + 'sheets': [_format_sheet(s) for s in sheets] + } + ).execute() + + return Spreadsheet.from_existing(data, self) + def get_values(self, spreadsheet_id, range_name): """Initialize a new block and return it""" @@ -122,26 +160,31 @@ def __init__(self, client=None, **kwargs): # initalize the other properties super(self.__class__, self).__init__(**kwargs) - @classmethod - def from_existing(cls, data, client=None): - """initiates using existing Spreadsheet resource""" - - new_data = keys_to_snake(data) - return cls(client, **new_data) - def __iter__(self): return self.yield_sheets() + def __getitem__(self, key): + try: + if key.isdigit(): + return self.get_sheet_by_id(key) + else: + return self.get_sheet_by_name(key) + except ValueError: + raise TypeError('Sheet not found') + def __enter__(self): return self def __exit__(self, exception_type, exception_value, traceback): - # if self.__updates: - # self.client.push_updates(self._id, self._updates) - # # TODO: add success handlers - # del self._updates[:] self.update() + @classmethod + def from_existing(cls, data, client=None): + """initiates using existing Spreadsheet resource""" + + new_data = keys_to_snake(data) + return cls(client, **new_data) + @property def id(self): return self._spreadsheet_id @@ -216,15 +259,6 @@ def update(self): # TODO: add success handlers del self._updates[:] - def __getitem__(self, key): - try: - if key.isdigit(): - return self.get_sheet_by_id(key) - else: - return self.get_sheet_by_name(key) - except ValueError: - raise TypeError('Sheet not found') - class NamedRange(object): """represents a NamedRange resource, can return it's range in A1 notation From e905b2f3dbac298f0ded0d3afc4a16e921dc208f Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sun, 11 Jun 2017 20:34:34 -0400 Subject: [PATCH 23/51] services moved to their own dirs --- README.md | 12 +- google_objects/__init__.py | 10 +- google_objects/drive/__init__.py | 0 google_objects/{drive.py => drive/core.py} | 8 +- google_objects/sheets/__init__.py | 0 google_objects/{sheets.py => sheets/core.py} | 158 ++++++++----------- google_objects/sheets/updates.py | 20 +++ google_objects/slides/__init__.py | 0 google_objects/{slides.py => slides/core.py} | 82 ++-------- google_objects/slides/updates.py | 51 ++++++ tests/test_drive.py | 6 +- tests/test_sheets.py | 6 +- tests/test_slides.py | 10 +- 13 files changed, 176 insertions(+), 187 deletions(-) create mode 100644 google_objects/drive/__init__.py rename google_objects/{drive.py => drive/core.py} (98%) create mode 100644 google_objects/sheets/__init__.py rename google_objects/{sheets.py => sheets/core.py} (77%) create mode 100644 google_objects/sheets/updates.py create mode 100644 google_objects/slides/__init__.py rename google_objects/{slides.py => slides/core.py} (87%) create mode 100644 google_objects/slides/updates.py diff --git a/README.md b/README.md index 67b46bf..46480f0 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib - [x] Retrieve drive 'About' information: ```python -from google_objects import DriveAPI +from google_objects import DriveClient -gdrive = DriveAPI(OAUTH2LIB_CREDS) +gdrive = DriveClient(OAUTH2LIB_CREDS) about = gdrive.get_about() print about.email @@ -67,9 +67,9 @@ print permission.role, permission.type, permission.email - [x] Retrieve presentation and loop through elements: ```python -from google_objects import SlidesAPI +from google_objects import SlidesClient -gslides = SlidesAPI(OAUTHLIB_CREDS) +gslides = SlidesClient(OAUTHLIB_CREDS) presentation = gslides.get_presentation('PRESENTATION_ID') # print slides attributes @@ -107,9 +107,9 @@ with presentation as pres: - [x] Retrieve spreadsheet and loop through sheets: ```python -from google_objects import SheetsAPI +from google_objects import SheetsClient -gsheets = SheetsAPI(OAUTHLIB_CREDS) +gsheets = SheetsClient(OAUTHLIB_CREDS) spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') for sheet in spreadsheet: diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 95d983b..3eeee36 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -31,7 +31,7 @@ def _gen_scopes(scopes): return ['https://www.googleapis.com/auth/' + each for each in scopes] -class GoogleAPI(object): +class GoogleClient(object): """Google API Base object that saves credentials and build Resource objects. Responsible for permissions @@ -59,6 +59,8 @@ def from_service_account(cls, creds_path, scope=SCOPES, user=None): creds_path = os.path.expanduser(creds_path) creds = S.from_json_keyfile_name(creds_path, _gen_scopes(scope)) + + # create delegated if user exists if user: creds = creds.create_delegated(user) @@ -101,6 +103,6 @@ def serialize(self): return return_dict -from .drive import DriveAPI -from .sheets import SheetsAPI -from .slides import SlidesAPI +from .drive.core import DriveClient +from .sheets.core import SheetsClient +from .slides.core import SlidesClient diff --git a/google_objects/drive/__init__.py b/google_objects/drive/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/google_objects/drive.py b/google_objects/drive/core.py similarity index 98% rename from google_objects/drive.py rename to google_objects/drive/core.py index 80c4dc8..1df8d0f 100644 --- a/google_objects/drive.py +++ b/google_objects/drive/core.py @@ -10,8 +10,8 @@ import uuid import logging -from . import GoogleAPI, GoogleObject -from .utils import keys_to_snake, keys_to_camel +from .. import GoogleClient, GoogleObject +from ..utils import keys_to_snake, keys_to_camel log = logging.getLogger(__name__) @@ -22,7 +22,7 @@ # add SKELETON to set attributes to null when not set -class DriveAPI(GoogleAPI): +class DriveClient(GoogleClient): """Google Drive Wrapper Object, exposes all Drive API operations. @@ -200,7 +200,7 @@ def __init__(self, client=None, **kwargs): """Initialize File Object :data: of file data - :client: + :client: """ self.client = client diff --git a/google_objects/sheets/__init__.py b/google_objects/sheets/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/google_objects/sheets.py b/google_objects/sheets/core.py similarity index 77% rename from google_objects/sheets.py rename to google_objects/sheets/core.py index bf9f06e..e9e0b53 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets/core.py @@ -7,12 +7,10 @@ """ -import re import logging -from decimal import Decimal, InvalidOperation -from . import GoogleAPI, GoogleObject -from .utils import keys_to_snake +from .. import GoogleClient, GoogleObject +from ..utils import keys_to_snake log = logging.getLogger(__name__) @@ -24,12 +22,13 @@ def _value_to_cell(val): - if str(val).isdigit(): + val = val.encode('utf-8').strip() + if val.isdigit(): try: return {'userEnteredValue': {'numberValue': float(val)}} except: return {'userEnteredValue': {'numberValue': int(val)}} - return {'userEnteredValue': {'stringValue': str(val)}} + return {'userEnteredValue': {'stringValue': val}} def _cells_to_row(cells): @@ -66,7 +65,7 @@ def _grid_to_a1(sheet_name, start, end): ) -class SheetsAPI(GoogleAPI): +class SheetsClient(GoogleClient): """Creates a Google Sheets Resource""" @@ -245,13 +244,15 @@ def get_named_range_by_id(self, rng_id): def named_ranges(self): def set_sheet_id(rng): - """if sheet_id isn't present, set it to the ID of the first sheet""" - if not 'sheet_id' in rng['range']: + """If sheet_id isn't present, set it to the ID of the first sheet. + """ + if 'sheet_id' not in rng['range']: rng['range']['sheet_id'] = 0 return rng - return [self.NamedRange(self, each) for each in map(set_sheet_id, self._named_ranges)] + _named_ranges = map(set_sheet_id, self._named_ranges) + return [NamedRange(self, each) for each in _named_ranges] def update(self): if self.__updates: @@ -259,60 +260,62 @@ def update(self): # TODO: add success handlers del self._updates[:] - class NamedRange(object): - """represents a NamedRange resource, can - return it's range in A1 notation - """ - def __init__(self, spreadsheet, named_range): - self.spreadsheet = spreadsheet - self.id = named_range.get('named_range_id') - self.name = named_range.get('name') - self.range = named_range.get('range') - - @property - def sheet_id(self): - if 'sheet_id' in self.range: - return self.range['sheet_id'] - - @property - def sheet_name(self): - sheet = self.spreadsheet[self.sheet_id] - return sheet.title - - @property - def start_row(self): - if 'start_row_index' in self.range: - return self.range['start_row_index'] - - @property - def end_row(self): - if 'end_row_index' in self.range: - return self.range['end_row_index'] - - @property - def start_column(self): - if 'start_column_index' in self.range: - return self.range['start_column_index'] - - @property - def end_column(self): - if 'end_column_index' in self.range: - return self.range['end_column_index'] - - def as_a1(self): - sheet_name = None - for sheet in self.spreadsheet.sheets(): - if self.sheet_id == sheet.id: - sheet_name = sheet.title - break - - start = (self.start_row, self.start_column) - end = (self.end_row, self.end_column) - return _grid_to_a1(sheet_name, start, end) - - def get_block(self): - return self.spreadsheet.get_range(self.as_a1()) +class NamedRange(object): + + """represents a NamedRange resource, can + return it's range in A1 notation + """ + + def __init__(self, spreadsheet, named_range): + self.spreadsheet = spreadsheet + self.id = named_range.get('named_range_id') + self.name = named_range.get('name') + self.range = named_range.get('range') + + @property + def sheet_id(self): + if 'sheet_id' in self.range: + return self.range['sheet_id'] + + @property + def sheet_name(self): + sheet = self.spreadsheet[self.sheet_id] + return sheet.title + + @property + def start_row(self): + if 'start_row_index' in self.range: + return self.range['start_row_index'] + + @property + def end_row(self): + if 'end_row_index' in self.range: + return self.range['end_row_index'] + + @property + def start_column(self): + if 'start_column_index' in self.range: + return self.range['start_column_index'] + + @property + def end_column(self): + if 'end_column_index' in self.range: + return self.range['end_column_index'] + + def as_a1(self): + sheet_name = None + for sheet in self.spreadsheet.sheets(): + if self.sheet_id == sheet.id: + sheet_name = sheet.title + break + + start = (self.start_row, self.start_column) + end = (self.end_row, self.end_column) + return _grid_to_a1(sheet_name, start, end) + + def get_block(self): + return self.spreadsheet.get_range(self.as_a1()) class Sheet(GoogleObject): @@ -447,32 +450,3 @@ def __getitem__(self, key): def __setitem__(self, key, item): self._values[key] = item - - -class SheetsUpdate(object): - - """creates google-api-wrapper ready batchUpdate - request dictionaries - """ - - @staticmethod - def format_row(sheet_id, start, end, red=0, green=0, blue=0): - return { - "repeatCell": { - "range": { - "sheetId": sheet_id, - "startRowIndex": start, - "endRowIndex": end - }, - "cell": { - "userEnteredFormat": { - "backgroundColor": { - "red": red, - "green": green, - "blue": blue - } - } - }, - "fields": "userEnteredFormat(backgroundColor)" - } - } diff --git a/google_objects/sheets/updates.py b/google_objects/sheets/updates.py new file mode 100644 index 0000000..0b14631 --- /dev/null +++ b/google_objects/sheets/updates.py @@ -0,0 +1,20 @@ +def FORMAT_ROW(sheet_id, start, end, red=0, green=0, blue=0): + return { + "repeatCell": { + "range": { + "sheetId": sheet_id, + "startRowIndex": start, + "endRowIndex": end + }, + "cell": { + "userEnteredFormat": { + "backgroundColor": { + "red": red, + "green": green, + "blue": blue + } + } + }, + "fields": "userEnteredFormat(backgroundColor)" + } + } diff --git a/google_objects/slides/__init__.py b/google_objects/slides/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/google_objects/slides.py b/google_objects/slides/core.py similarity index 87% rename from google_objects/slides.py rename to google_objects/slides/core.py index df6543f..797168e 100644 --- a/google_objects/slides.py +++ b/google_objects/slides/core.py @@ -12,8 +12,9 @@ from apiclient.errors import HttpError -from . import GoogleAPI, GoogleObject -from .utils import keys_to_snake, set_private_attrs +import updates +from .. import GoogleClient, GoogleObject +from ..utils import keys_to_snake, set_private_attrs log = logging.getLogger(__name__) @@ -30,7 +31,7 @@ # v/ generate elements from PageElement constructor using __subclasses__ -class SlidesAPI(GoogleAPI): +class SlidesClient(GoogleClient): """Google Slides Wrapper Object @@ -43,7 +44,7 @@ class SlidesAPI(GoogleAPI): """ def __init__(self, credentials=None, api_key=None): - super(SlidesAPI, self).__init__(credentials, api_key) + super(SlidesClient, self).__init__(credentials, api_key) self._resource = self.build('slides', 'v1') def get_presentation(self, presentation_id): @@ -67,8 +68,8 @@ def get_page(self, presentation_id, page_id): """ data = self._resource.presentations().pages().get( - presentationId = presentation_id, - pageObjectId = page_id + presentationId=presentation_id, + pageObjectId=page_id ).execute() return Page.from_existing(data) @@ -174,7 +175,7 @@ def replace_text(self, find, replace, case_sensitive=False): replacement with arg:find to arg:replace """ self.add_update( - SlidesUpdate.replace_all_text(str(find), str(replace), case_sensitive) + updates.REPLACE_ALL_TEXT(str(find), str(replace), case_sensitive) ) def get_element_by_id(self, element_id): @@ -343,7 +344,7 @@ def delete(self): presentation updates list. """ self.presentation.add_update( - SlidesUpdate.delete_object(self._id) + updates.DELETE_OBJECT(self._id) ) @@ -484,7 +485,7 @@ def text(self): def text(self, value): if not self._text: self.page_element.update( - SlidesUpdate.delete_text( + updates.DELETE_TEXT( self.page_element.id, row=getattr(self.page_element, 'start_index', None), col=getattr(self.page_element, 'end_index', None), @@ -493,7 +494,7 @@ def text(self, value): ) ) - update_request = SlidesUpdate.insert_text( + update_request = updates.INSERT_TEXT( self.id, value, start=self.start_index ) self.page_element.update(update_request) @@ -503,7 +504,7 @@ def text(self, value): @text.deleter def text(self): obj_id = self.page_element.id - update_request = SlidesUpdate.delete_text( + update_request = updates.DELETE_TEXT( obj_id, start=self.start_index, end=self.end_index ) self.page_element.update(update_request) @@ -519,62 +520,3 @@ def match(self, regex): def __str__(self): return self.text - - -class SlidesUpdate(object): - - """creates google-api-wrapper ready batchUpdate - request dictionaries - """ - - @staticmethod - def delete_object(obj_id): - return { - 'deleteObject': { - 'objectId': obj_id - } - } - - @staticmethod - def replace_all_text(find, replace, case_sensitive=False): - return { - 'replaceAllText': { - 'replaceText': replace, - 'containsText': { - 'text': find, - 'matchCase': case_sensitive - } - } - } - - @staticmethod - def insert_text(obj_id, text, row=None, column=None, start=0): - return { - 'insertText': { - 'objectId': obj_id, - 'text': text, - 'cellLocation': { - 'rowIndex': row, - 'columnIndex': column - }, - 'insertionIndex': start - - } - } - - @staticmethod - def delete_text(obj_id, row=None, col=None, start=None, end=None, kind='FIXED_RANGE'): - return { - 'deleteText': { - 'objectId': obj_id, - 'cellLocation': { - 'rowIndex': row, - 'columnIndex': col - }, - 'text_range': { - 'startIndex': start, - 'endIndex': end - - }, - } - } diff --git a/google_objects/slides/updates.py b/google_objects/slides/updates.py new file mode 100644 index 0000000..7085623 --- /dev/null +++ b/google_objects/slides/updates.py @@ -0,0 +1,51 @@ +def DELETE_OBJECT(obj_id): + return { + 'deleteObject': { + 'objectId': obj_id + } + } + + +def REPLACE_ALL_TEXT(find, replace, case_sensitive=False): + return { + 'replaceAllText': { + 'replaceText': replace, + 'containsText': { + 'text': find, + 'matchCase': case_sensitive + } + } + } + + +def INSERT_TEXT(obj_id, text, row=None, column=None, start=0): + return { + 'insertText': { + 'objectId': obj_id, + 'text': text, + 'cellLocation': { + 'rowIndex': row, + 'columnIndex': column + }, + 'insertionIndex': start + + } + } + + +def DELETE_TEXT(obj_id, row=None, + col=None, start=None, end=None, kind='FIXED_RANGE'): + return { + 'deleteText': { + 'objectId': obj_id, + 'cellLocation': { + 'rowIndex': row, + 'columnIndex': col + }, + 'text_range': { + 'startIndex': start, + 'endIndex': end + + }, + } + } diff --git a/tests/test_drive.py b/tests/test_drive.py index 40fc071..65b8985 100644 --- a/tests/test_drive.py +++ b/tests/test_drive.py @@ -6,13 +6,13 @@ from oauth2client.service_account import ServiceAccountCredentials from oauth2client.client import OAuth2Credentials -from google_objects import DriveAPI -from google_objects.drive import File, Permission +from google_objects import DriveClient +from google_objects.drive.core import File, Permission @pytest.fixture def client(credentials): - return DriveAPI.from_service_account(*credentials) + return DriveClient.from_service_account(*credentials) def test_file_list(client): diff --git a/tests/test_sheets.py b/tests/test_sheets.py index 95ab605..3a8dbec 100644 --- a/tests/test_sheets.py +++ b/tests/test_sheets.py @@ -5,15 +5,15 @@ import os import logging -from google_objects import SheetsAPI -from google_objects.sheets import Spreadsheet, Sheet, Block +from google_objects import SheetsClient +from google_objects.sheets.core import Spreadsheet, Sheet, Block log = logging.getLogger(__name__) @pytest.fixture def client(credentials): - return SheetsAPI.from_service_account(*credentials) + return SheetsClient.from_service_account(*credentials) @pytest.fixture diff --git a/tests/test_slides.py b/tests/test_slides.py index 307b6b3..e15c945 100644 --- a/tests/test_slides.py +++ b/tests/test_slides.py @@ -1,15 +1,15 @@ import os import pytest -from google_objects import SlidesAPI -from google_objects.slides import Presentation, Page -from google_objects.slides import PageElement, Shape, Table -from google_objects.slides import TextContent +from google_objects import SlidesClient +from google_objects.slides.core import Presentation, Page +from google_objects.slides.core import PageElement, Shape, Table +from google_objects.slides.core import TextContent @pytest.fixture def client(credentials): - return SlidesAPI.from_service_account(*credentials) + return SlidesClient.from_service_account(*credentials) def test_get_presentation(client): From c1f99d0206a05434892bf60d4b4136ee4b7f41f9 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 14 Jun 2017 23:52:06 -0400 Subject: [PATCH 24/51] ported to python 3 --- google_objects/drive/core.py | 2 +- google_objects/slides/core.py | 6 +++--- google_objects/utils.py | 6 +++--- setup.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/google_objects/drive/core.py b/google_objects/drive/core.py index 1df8d0f..03f6e87 100644 --- a/google_objects/drive/core.py +++ b/google_objects/drive/core.py @@ -283,7 +283,7 @@ def add_permission(self, email, **kwargs): to queue """ - kwargs.update({'email': email}) + kwargs.update({'email': email, 'emailAddress': email}) permission = Permission.from_existing(kwargs, self) message = kwargs.get('message') notification = kwargs.get('notification') diff --git a/google_objects/slides/core.py b/google_objects/slides/core.py index 797168e..4d23f65 100644 --- a/google_objects/slides/core.py +++ b/google_objects/slides/core.py @@ -12,9 +12,9 @@ from apiclient.errors import HttpError -import updates -from .. import GoogleClient, GoogleObject -from ..utils import keys_to_snake, set_private_attrs +import google_objects.slides.updates +from google_objects import GoogleClient, GoogleObject +from google_objects.utils import keys_to_snake, set_private_attrs log = logging.getLogger(__name__) diff --git a/google_objects/utils.py b/google_objects/utils.py index b88b188..779eb7e 100644 --- a/google_objects/utils.py +++ b/google_objects/utils.py @@ -28,7 +28,7 @@ def set_private_attrs(instance, dt): """ - for key, val in dt.iteritems(): + for key, val in dt.items(): setattr(instance, '_{}'.format(key), val) # self.__dict__['_{}'.format(key)] = val @@ -67,7 +67,7 @@ def keys_to_snake(dt): """recursively changes camel_cased keys on argument to snake case""" - for key, val in dt.iteritems(): + for key, val in dt.items(): if isinstance(val, list): val = list_to_snake(val) @@ -84,7 +84,7 @@ def keys_to_camel(dt): """recursively changes snake_cased keys on argument to camel_case, strips leading underscores""" - for key, val in dt.iteritems(): + for key, val in dt.items(): if isinstance(val, dict): val = keys_to_camel(val) diff --git a/setup.py b/setup.py index 3589620..e7313e1 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,8 @@ install_requires=requires, setup_requires=setup_requirements, tests_require=test_requirements, - url='https://github.com/theconnor/google-objects', - download_url='https://github.com/theconnor/google-objects/tarball/' + version, + url='https://github.com/condad/google-objects', + download_url='https://github.com/condad/google-objects/tarball/' + version, keywords=['google', 'api', 'wrapper'], classifiers=[], ) From 325638d55ad9bac7da6ef52a480e09cb0601b83f Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 19 Jul 2017 16:42:13 -0400 Subject: [PATCH 25/51] can now init. sheets from pandas DataFrames --- README.md | 48 ++++++++++++++++---------------- google_objects/__init__.py | 4 +-- google_objects/sheets/core.py | 8 +++++- google_objects/sheets/updates.py | 9 +++--- google_objects/utils.py | 8 ++++++ 5 files changed, 46 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 46480f0..b352847 100644 --- a/README.md +++ b/README.md @@ -33,18 +33,18 @@ print about.photo ```python files_by_type = { - 'slides': gdrive.list_files('presentation'), - 'folders': gdrive.list_files('folder'), - 'spreadsheets': gdrive.list_files('spreadsheets'), + 'slides': gdrive.list_files('presentation'), + 'folders': gdrive.list_files('folder'), + 'spreadsheets': gdrive.list_files('spreadsheets'), } for file in files_by_type['folders']: - print file.id - print file.name + print file.id + print file.name for file in files_by_type['spreadsheets']: - # prints list of parent folder IDs - print file.parents + # prints list of parent folder IDs + print file.parents # ... ``` @@ -74,11 +74,11 @@ presentation = gslides.get_presentation('PRESENTATION_ID') # print slides attributes for slide in presentation: - print slide.id + print slide.id - for element in slide: # equivalent to 'for element in presentation.elements()' - print element.type - # Shape, Table, etc + for element in slide: # equivalent to 'for element in presentation.elements()' + print element.type + # Shape, Table, etc ``` - [x] Check text in shape: @@ -86,7 +86,7 @@ for slide in presentation: ```python shape = presentation.get_element_by_id('SHAPE_ID') for segment in shape.text: - print segment.text + print segment.text ``` - [x] Batch update every cell in table: @@ -94,12 +94,12 @@ for segment in shape.text: ```python # use with to perform batch updates in block with presentation as pres: - table = pres.get_element_by_id('TABLE_ID') - for cell in table: - print cell.location # tuple containing cell location - for segment in cell.text: - # update cell - segment.text = 'UPDATED_VALUE' + table = pres.get_element_by_id('TABLE_ID') + for cell in table: + print cell.location # tuple containing cell location + for segment in cell.text: + # update cell + segment.text = 'UPDATED_VALUE' ``` ### Google Sheets v4 @@ -113,14 +113,14 @@ gsheets = SheetsClient(OAUTHLIB_CREDS) spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') for sheet in spreadsheet: - print sheet.id, sheet.title + print sheet.id, sheet.title ``` - [x] Get sheet by name and return its full block of values: ```python sheet = spreadsheet['Sheet 1'] -values = sheet.values() +values = sheet.values() ``` - [x] Get named range value block: @@ -128,7 +128,7 @@ values = sheet.values() ```python named_ranges = spreadsheet.named_ranges('SHEET_NAME!A:C') for rng in named_range: - values = named_range.get_block() + values = named_range.get_block() ``` - [x] Update values block: @@ -137,8 +137,8 @@ for rng in named_range: values = spreadsheet.get_range('SHEET_NAME!A:C') # loop through rows for i, row in enumerate(values): - values[i] = [1, 2, 3] - print row + values[i] = [1, 2, 3] + print row values.update() # you can also use the slice syntax for updating.. @@ -150,5 +150,5 @@ values.update() ```python to_append = [[1, 2, 3], [4, 5, 6]] -values.append(to_append) +values.append(to_append) ``` diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 3eeee36..83ddfbb 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -6,8 +6,8 @@ from apiclient import discovery -from .utils import set_private_attrs -from .utils import keys_to_snake, keys_to_camel +from google_objects.utils import set_private_attrs +from google_objects.utils import keys_to_snake, keys_to_camel # sets default logging handler to avoid "No handler found" warnings. diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index e9e0b53..e229f96 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -22,7 +22,6 @@ def _value_to_cell(val): - val = val.encode('utf-8').strip() if val.isdigit(): try: return {'userEnteredValue': {'numberValue': float(val)}} @@ -89,6 +88,13 @@ def get_spreadsheet(self, id): return Spreadsheet.from_existing(data, self) + def create_spreadsheet_from_dataframes(self, *frames, **options): + if not frames: + raise ValueError + + formatted_frames = [frm.values.tolist() for frm in frames] + return self.create_spreadsheet(self, formatted_frames, **options) + def create_spreadsheet(self, sheets=[], **kwargs): data = self._resource.spreadsheets().create( body={ diff --git a/google_objects/sheets/updates.py b/google_objects/sheets/updates.py index 0b14631..7af5efc 100644 --- a/google_objects/sheets/updates.py +++ b/google_objects/sheets/updates.py @@ -1,4 +1,4 @@ -def FORMAT_ROW(sheet_id, start, end, red=0, green=0, blue=0): +def FORMAT_ROW(sheet_id, start, end, rgba): return { "repeatCell": { "range": { @@ -9,9 +9,10 @@ def FORMAT_ROW(sheet_id, start, end, red=0, green=0, blue=0): "cell": { "userEnteredFormat": { "backgroundColor": { - "red": red, - "green": green, - "blue": blue + "red": rgba[0], + "green": rgba[1], + "blue": rgba[2], + 'alpha': rgba[3] } } }, diff --git a/google_objects/utils.py b/google_objects/utils.py index 779eb7e..60bc1dd 100644 --- a/google_objects/utils.py +++ b/google_objects/utils.py @@ -92,3 +92,11 @@ def keys_to_camel(dt): dt[new_key] = dt.pop(key) return dt + +if __name__ == '__main__': + dt = { + 'pageElements': 'test', + 'otherPresentation': 3 + } + + print(keys_to_snake(dt)) From e5fd6432cef080a37042d518dbd7e053ad3375d1 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 2 Aug 2017 22:21:33 -0400 Subject: [PATCH 26/51] service account constructor added --- README.md | 30 +++++++++++++++--------------- google_objects/__init__.py | 8 +++++++- google_objects/drive/core.py | 2 -- google_objects/sheets/core.py | 5 +++++ google_objects/utils.py | 19 ------------------- 5 files changed, 27 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index b352847..cf85b2c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Google Objects Thin, pythonic OO wrapper around Google's "google-api-python-client" library. -Currently supports Python 2.7 :snake::snake::snake: +Currently supports Python 3+ :snake::snake::snake: ## Installation ```bash @@ -20,11 +20,11 @@ from google_objects import DriveClient gdrive = DriveClient(OAUTH2LIB_CREDS) about = gdrive.get_about() -print about.email -print about.name +print(about.email) +print(about.name) # prints link to profile photo -print about.photo +print(about.photo) # ... ``` @@ -39,12 +39,12 @@ files_by_type = { } for file in files_by_type['folders']: - print file.id - print file.name + print(file.id) + print(file.name) for file in files_by_type['spreadsheets']: # prints list of parent folder IDs - print file.parents + print(file.parents) # ... ``` @@ -59,7 +59,7 @@ new_file = file.copy('NEW_FILE_NAME', ['PARENT_FOLDER_1', 'PARENT_FOLDER_2']) permission = new_file.add_permission('myfriend@hotmail.com') # print newly created permission information -print permission.role, permission.type, permission.email +print(permission.role, permission.type, permission.email) ``` ### Google Slides v1 @@ -74,11 +74,11 @@ presentation = gslides.get_presentation('PRESENTATION_ID') # print slides attributes for slide in presentation: - print slide.id + print(slide.id) for element in slide: # equivalent to 'for element in presentation.elements()' - print element.type - # Shape, Table, etc + print(element.type) + # Shape, Table, etc ``` - [x] Check text in shape: @@ -86,7 +86,7 @@ for slide in presentation: ```python shape = presentation.get_element_by_id('SHAPE_ID') for segment in shape.text: - print segment.text + print(segment.text) ``` - [x] Batch update every cell in table: @@ -96,7 +96,7 @@ for segment in shape.text: with presentation as pres: table = pres.get_element_by_id('TABLE_ID') for cell in table: - print cell.location # tuple containing cell location + print(cell.location) # tuple containing cell location for segment in cell.text: # update cell segment.text = 'UPDATED_VALUE' @@ -113,7 +113,7 @@ gsheets = SheetsClient(OAUTHLIB_CREDS) spreadsheet = gsheets.get_spreadsheet('SPREADSHEET_ID') for sheet in spreadsheet: - print sheet.id, sheet.title + print(sheet.id, sheet.title) ``` - [x] Get sheet by name and return its full block of values: @@ -138,7 +138,7 @@ values = spreadsheet.get_range('SHEET_NAME!A:C') # loop through rows for i, row in enumerate(values): values[i] = [1, 2, 3] - print row + print(row) values.update() # you can also use the slice syntax for updating.. diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 83ddfbb..caa5a14 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -54,9 +54,15 @@ def build(self, service, version, **kwargs): return discovery.build(service, version, http=http, **kwargs) @classmethod - def from_service_account(cls, creds_path, scope=SCOPES, user=None): + def from_service_account(cls, creds_path=None, user=None, scope=SCOPES): from oauth2client.service_account import ServiceAccountCredentials as S + if not creds_path: + creds_path = os.getenv('GOOGLE_SERVICE_ACCOUNT_CREDENTIALS') + + if not user: + user = os.getenv('GOOGLE_DELEGATED_USER') + creds_path = os.path.expanduser(creds_path) creds = S.from_json_keyfile_name(creds_path, _gen_scopes(scope)) diff --git a/google_objects/drive/core.py b/google_objects/drive/core.py index 03f6e87..02f2bd7 100644 --- a/google_objects/drive/core.py +++ b/google_objects/drive/core.py @@ -144,8 +144,6 @@ def create_permission(self, file_id, permission, message=None, notification=True return Permission(**data) -# objects - class About(GoogleObject): """Docstring for User Resource, this is READ ONLY""" diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index e229f96..1a859b6 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -75,6 +75,11 @@ def __init__(self, credentials=None, api_key=None, callback=None): super(self.__class__, self).__init__(credentials, api_key) self._resource = self.build('sheets', 'v4') + @classmethod + def from_service_account(cls, **kwargs): + kwargs['scope'] = ['spreadsheets'] + return super().from_service_account(**kwargs) + def get_spreadsheet(self, id): """Returns a Spreadsheet Object diff --git a/google_objects/utils.py b/google_objects/utils.py index 60bc1dd..4603848 100644 --- a/google_objects/utils.py +++ b/google_objects/utils.py @@ -6,17 +6,6 @@ """ import re -from functools import wraps - - -def handle_key_error(func): - @wraps(func) - def func_wrapper(self): - try: - return func(self) - except KeyError: - return - return func_wrapper def set_private_attrs(instance, dt): @@ -92,11 +81,3 @@ def keys_to_camel(dt): dt[new_key] = dt.pop(key) return dt - -if __name__ == '__main__': - dt = { - 'pageElements': 'test', - 'otherPresentation': 3 - } - - print(keys_to_snake(dt)) From dcf8f54e6166a38fa0e0317bf1425f58a91d9235 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 7 Aug 2017 18:29:49 -0400 Subject: [PATCH 27/51] sheets tests running with fixtures --- google_objects/__init__.py | 73 +++++------- google_objects/auth.py | 44 +++++++ google_objects/sheets/core.py | 25 ++-- setup.py | 5 + tests/__init__.py | 0 tests/data/range.json | 86 ++++++++++++++ tests/data/spreadsheet.json | 184 ++++++++++++++++++++++++++++++ tests/{ => legacy}/conftest.py | 0 tests/{ => legacy}/test_drive.py | 0 tests/{ => legacy}/test_sheets.py | 0 tests/{ => legacy}/test_slides.py | 0 tests/sheets_test.py | 51 +++++++++ tests/utils.py | 12 ++ 13 files changed, 419 insertions(+), 61 deletions(-) create mode 100644 google_objects/auth.py create mode 100644 tests/__init__.py create mode 100644 tests/data/range.json create mode 100644 tests/data/spreadsheet.json rename tests/{ => legacy}/conftest.py (100%) rename tests/{ => legacy}/test_drive.py (100%) rename tests/{ => legacy}/test_sheets.py (100%) rename tests/{ => legacy}/test_slides.py (100%) create mode 100644 tests/sheets_test.py create mode 100644 tests/utils.py diff --git a/google_objects/__init__.py b/google_objects/__init__.py index caa5a14..347237f 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -2,13 +2,22 @@ import os import logging -import httplib2 from apiclient import discovery +from google_objects.auth import service_account_creds from google_objects.utils import set_private_attrs from google_objects.utils import keys_to_snake, keys_to_camel +SCOPES = { + 'drive', + 'spreadsheets' +} + + +def _gen_scopes(scopes): + return ['https://www.googleapis.com/auth/' + each for each in scopes] + # sets default logging handler to avoid "No handler found" warnings. try: @@ -21,15 +30,6 @@ def emit(self, record): logging.getLogger(__name__).addHandler(NullHandler()) -SCOPES = { - 'drive', - 'spreadsheets' -} - - -def _gen_scopes(scopes): - return ['https://www.googleapis.com/auth/' + each for each in scopes] - class GoogleClient(object): @@ -39,38 +39,31 @@ class GoogleClient(object): """ - def __init__(self, credentials=None, api_key=None): - self.credentials = credentials - self.api_key = api_key + def __init__(self, resource=None): + self.resource = resource - def build(self, service, version, **kwargs): - """Create an API specific HTTP resource.""" + @classmethod + def from_api_key(cls, service, version, api_key): + """Authorizes a client from an Api Key.""" - if self.api_key: - return discovery.build(service, version, - developerKey=self.api_key, **kwargs) + if not api_key: + raise ValueError('Please provide an API Key.') - http = self.credentials.authorize(httplib2.Http()) - return discovery.build(service, version, http=http, **kwargs) + resource = discovery.build(service, version, developerKey=api_key) + return cls(resource) @classmethod - def from_service_account(cls, creds_path=None, user=None, scope=SCOPES): - from oauth2client.service_account import ServiceAccountCredentials as S + def from_service_account(cls, service, version, + creds_path=None, user=None, scope=[]): + """Authorizes a client from an Service Account Credential File.""" if not creds_path: - creds_path = os.getenv('GOOGLE_SERVICE_ACCOUNT_CREDENTIALS') + err = 'Please provide an a path to your service credentals.' + raise ValueError(err) - if not user: - user = os.getenv('GOOGLE_DELEGATED_USER') - - creds_path = os.path.expanduser(creds_path) - creds = S.from_json_keyfile_name(creds_path, _gen_scopes(scope)) - - # create delegated if user exists - if user: - creds = creds.create_delegated(user) - - return cls(creds) + http_client = service_account_creds(creds_path, user, scope=_gen_scope(scope)) + resource = discovery.build(service, version, http=http_client) + return cls(resource) class GoogleObject(object): @@ -80,8 +73,6 @@ class GoogleObject(object): values. """ - _properties = set() - def __init__(self, **kwargs): """Set Resource corresponding **kwargs to private attributes. @@ -98,15 +89,7 @@ def serialize(self): intersection of this and _properties """ - return_dict = keys_to_camel(vars(self)) - keys = return_dict.keys() - - # return only defined properties - excess_keys = set(keys) - self._properties - for key in excess_keys: - del return_dict[key] - - return return_dict + return keys_to_camel(self.data) from .drive.core import DriveClient diff --git a/google_objects/auth.py b/google_objects/auth.py new file mode 100644 index 0000000..71a19f6 --- /dev/null +++ b/google_objects/auth.py @@ -0,0 +1,44 @@ +import os + +import httplib2 +from apiclient import discovery + + +def service_account_creds(creds_path, delegated_user=None, scope=None): + """Return httplib2 client, used for discovery.build usage.""" + from oauth2client.service_account import ServiceAccountCredentials + + # use env vars if parameters aren't given + if not creds_path: + creds_path = os.getenv('GOOGLE_SERVICE_ACCOUNT_CREDENTIALS') + if not delegated_user: + user = os.getenv('GOOGLE_DELEGATED_USER') + + creds_path = os.path.expanduser(creds_path) + creds = ServiceAccountCredentials.from_json_keyfile_name( + creds_path, _gen_scopes(scope) + ) + + # create delegated if user exists + if user: + creds = creds.create_delegated(user) + + return creds.authorize(httplib2.Http()) + + +def build_resource(service, version, creds=None, api_key=None, **kwargs): + """Create an API specific HTTP resource.""" + + if not (api_key or creds): + raise ValueError('Credentials or API Key Required') + + if api_key: + resource = discovery.build( + service, version, developerKey=api_key, **kwargs + ) + + if creds: + http = creds.authorize(httplib2.Http()) + resource = discovery.build(service, version, http=http, **kwargs) + + return resource diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index 1a859b6..260e5cf 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -42,9 +42,7 @@ def _format_sheet(sheet): 'title': title }, 'data': { - 'rowData': [ - {'values': _cells_to_row(val)} for val in values - ] + 'rowData': [{'values': _cells_to_row(val)} for val in values] } } @@ -68,16 +66,11 @@ class SheetsClient(GoogleClient): """Creates a Google Sheets Resource""" - def __init__(self, credentials=None, api_key=None, callback=None): - """Google Sheets API client, exposes - collection resources - """ - super(self.__class__, self).__init__(credentials, api_key) - self._resource = self.build('sheets', 'v4') - @classmethod def from_service_account(cls, **kwargs): kwargs['scope'] = ['spreadsheets'] + kwargs['service'] = ['sheets'] + kwargs['version'] = ['v4'] return super().from_service_account(**kwargs) def get_spreadsheet(self, id): @@ -87,7 +80,7 @@ def get_spreadsheet(self, id): :returns: Model """ - data = self._resource.spreadsheets().get( + data = self.resource.spreadsheets().get( spreadsheetId=id ).execute() @@ -101,7 +94,7 @@ def create_spreadsheet_from_dataframes(self, *frames, **options): return self.create_spreadsheet(self, formatted_frames, **options) def create_spreadsheet(self, sheets=[], **kwargs): - data = self._resource.spreadsheets().create( + data = self.resource.spreadsheets().create( body={ 'properties': kwargs, 'sheets': [_format_sheet(s) for s in sheets] @@ -113,7 +106,7 @@ def create_spreadsheet(self, sheets=[], **kwargs): def get_values(self, spreadsheet_id, range_name): """Initialize a new block and return it""" - data = self._resource.spreadsheets().values().get( + data = self.resource.spreadsheets().values().get( spreadsheetId=spreadsheet_id, range=range_name ).execute() @@ -121,7 +114,7 @@ def get_values(self, spreadsheet_id, range_name): return Block.from_existing(data, client=self) def update_values(self, spreadsheet_id, range_name, values, format='RAW'): - data = self._resource.spreadsheets().values().update( + data = self.resource.spreadsheets().values().update( spreadsheetId=spreadsheet_id, range=range_name, valueInputOption=format, @@ -139,7 +132,7 @@ def append_values(self, spreadsheet_id, rng, values): """ - data = self._resource.spreadsheets().values().append( + data = self.resource.spreadsheets().values().append( spreadsheetId=spreadsheet_id, range=rng, valueInputOption='USER_ENTERED', @@ -150,7 +143,7 @@ def append_values(self, spreadsheet_id, rng, values): return Block.from_existing(data, client=self) def push_updates(self, spreadsheet_id, updates): - spreadsheets = self._resource.spreadsheets() + spreadsheets = self.resource.spreadsheets() spreadsheets.batchUpdate( spreadsheetId=spreadsheet_id, body={'requests': updates} diff --git a/setup.py b/setup.py index e7313e1..ec1e0e7 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ +import os +import sys from distutils.core import setup +if sys.argv[-1] == 'test': + os.system('python -sm unittest discover tests "*_test.py"') + sys.exit(0) version = '0.0.3' requires = ['google-api-python-client>=1.5.3'] diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/data/range.json b/tests/data/range.json new file mode 100644 index 0000000..b2ab264 --- /dev/null +++ b/tests/data/range.json @@ -0,0 +1,86 @@ +{ + "range": "'CLSFF Fluxx'!A1:N101", + "majorDimension": "ROWS", + "values": [ + [ + "Index", + "Tax ID", + "Org", + "street", + "city", + "state" + ], + [ + "1", + "826369267", + "TEST Tanoodle Inc", + "2 Morrow Parkway", + "Fort Myers", + "FL" + ], + [ + "2", + "530875595", + "TEST Gabtype Inc", + "1 Westend Plaza", + "Cedar Rapids", + "IA" + ], + [ + "3", + "980915293", + "TEST Bluejam Co-op", + "9463 Loeprich Way", + "Appleton", + "WI" + ], + [ + "4", + "301006867", + "TEST Vipe Inc", + "552 Russell Terrace", + "El Paso", + "TX" + ], + [ + "5", + "344273582", + "TEST Trunyx Works", + "31595 Loomis Circle", + "Spokane", + "WA" + ], + [ + "6", + "857753185", + "TEST Quimba United", + "1 Ridgeway Center", + "Portland", + "OR" + ], + [ + "7", + "674638959", + "TEST Zoonder Foundation", + "24 Hoepker Point", + "Jamaica", + "NY" + ], + [ + "8", + "382646422", + "TEST Devpoint Associates", + "93796 Declaration Alley", + "Oakland", + "CA" + ], + [ + "9", + "387889089", + "TEST Yoveo Co", + "72284 Upham Junction", + "Kansas City", + "MO" + ] + ] +} diff --git a/tests/data/spreadsheet.json b/tests/data/spreadsheet.json new file mode 100644 index 0000000..81af02d --- /dev/null +++ b/tests/data/spreadsheet.json @@ -0,0 +1,184 @@ +{ + "spreadsheetId": "abc123", + "properties": { + "title": "Test Google Spreadsheet", + "locale": "en_US", + "autoRecalc": "ON_CHANGE", + "timeZone": "America/Toronto", + "defaultFormat": { + "backgroundColor": { + "red": 1, + "green": 1, + "blue": 1 + }, + "padding": { + "top": 2, + "right": 3, + "bottom": 2, + "left": 3 + }, + "verticalAlignment": "BOTTOM", + "wrapStrategy": "OVERFLOW_CELL", + "textFormat": { + "foregroundColor": { + }, + "fontFamily": "arial,sans,sans-serif", + "fontSize": 10, + "bold": false, + "italic": false, + "strikethrough": false, + "underline": false + } + } + }, + "sheets": [ + { + "properties": { + "sheetId": 258127222, + "title": "CLSFF Fluxx", + "index": 0, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 102, + "columnCount": 13 + } + } + }, + { + "properties": { + "sheetId": 574349425, + "title": "CFCC ACH", + "index": 1, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 101, + "columnCount": 12, + "frozenRowCount": 1 + } + }, + "basicFilter": { + "range": { + "sheetId": 574349425, + "startRowIndex": 0, + "endRowIndex": 100, + "startColumnIndex": 0, + "endColumnIndex": 11 + }, + "sortSpecs": [ + { + "sortOrder": "DESCENDING" + } + ], + "criteria": { + "4": { + } + } + } + }, + { + "properties": { + "sheetId": 947309066, + "title": "DRI Fluxx", + "index": 2, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 102, + "columnCount": 13, + "frozenRowCount": 1 + } + }, + "basicFilter": { + "range": { + "sheetId": 947309066, + "startRowIndex": 0, + "endRowIndex": 101, + "startColumnIndex": 0, + "endColumnIndex": 12 + }, + "sortSpecs": [ + { + "dimensionIndex": 1, + "sortOrder": "ASCENDING" + } + ] + } + }, + { + "properties": { + "sheetId": 1924375635, + "title": "CFC 150", + "index": 3, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 100, + "columnCount": 13 + } + } + }, + { + "properties": { + "sheetId": 484180191, + "title": "CAN Users w/ Address and Project", + "index": 4, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 102, + "columnCount": 12 + } + } + }, + { + "properties": { + "sheetId": 0, + "title": "US Users w/ Address and IBAN", + "index": 5, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 102, + "columnCount": 12 + } + } + }, + { + "properties": { + "sheetId": 2006865618, + "title": "CRA Numbers", + "index": 6, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 100, + "columnCount": 20 + } + } + }, + { + "properties": { + "sheetId": 639763700, + "title": "Project Titles", + "index": 7, + "sheetType": "GRID", + "gridProperties": { + "rowCount": 150, + "columnCount": 3, + "frozenRowCount": 1 + } + }, + "basicFilter": { + "range": { + "sheetId": 639763700, + "startRowIndex": 0, + "endRowIndex": 144, + "startColumnIndex": 0, + "endColumnIndex": 3 + }, + "sortSpecs": [ + { + "dimensionIndex": 1, + "sortOrder": "ASCENDING" + } + ] + } + } + ], + "spreadsheetUrl": "https://docs.google.com/a/grantbook.org/spreadsheets/d/1R-edV8LDgRaaPHSSsNSyR5vG9ypuDjovn7jGcK1k-RY/edit" +} diff --git a/tests/conftest.py b/tests/legacy/conftest.py similarity index 100% rename from tests/conftest.py rename to tests/legacy/conftest.py diff --git a/tests/test_drive.py b/tests/legacy/test_drive.py similarity index 100% rename from tests/test_drive.py rename to tests/legacy/test_drive.py diff --git a/tests/test_sheets.py b/tests/legacy/test_sheets.py similarity index 100% rename from tests/test_sheets.py rename to tests/legacy/test_sheets.py diff --git a/tests/test_slides.py b/tests/legacy/test_slides.py similarity index 100% rename from tests/test_slides.py rename to tests/legacy/test_slides.py diff --git a/tests/sheets_test.py b/tests/sheets_test.py new file mode 100644 index 0000000..da68206 --- /dev/null +++ b/tests/sheets_test.py @@ -0,0 +1,51 @@ +import unittest +from unittest import mock + +from tests.utils import get_data +from google_objects.sheets.core import SheetsClient +from google_objects.sheets.core import Spreadsheet +from google_objects.sheets.core import Sheet +from google_objects.sheets.core import Block + +# load google sheets dummy data +spreadsheet = get_data('spreadsheet') +values = get_data('range') + +# initialize mock google-api-python-client resource object +mock_resource = mock.Mock() +mock_resource.spreadsheets().get().execute.return_value = spreadsheet +mock_resource.spreadsheets().values().get().execute.return_value = values + + +class TestSheets(unittest.TestCase): + """Test Google Sheets objects""" + + def setUp(self): + self.client = SheetsClient(mock_resource) + + def test_spreadsheets(self): + spreadsheet = self.client.get_spreadsheet('abc123') + self.assertEqual(type(spreadsheet), Spreadsheet) + + # test spreadsheet properties + self.assertEqual(spreadsheet.title, 'Test Google Spreadsheet') + self.assertEqual(spreadsheet.id, 'abc123') + + def test_sheets(self): + spreadsheet = self.client.get_spreadsheet('abc123') + sheets = spreadsheet.sheets() + + for i, sheet in enumerate(sheets): + self.assertEqual(type(sheet), Sheet) + + first_sheet = sheets[0] + self.assertEqual(first_sheet.title, 'CLSFF Fluxx') + + def test_values(self): + spreadsheet = self.client.get_spreadsheet('abc123') + sheets = spreadsheet.sheets() + values = sheets[0].values() + self.assertEqual(type(values), Block) + + for val in values: + self.assertEqual(type(val), list) diff --git a/tests/utils.py b/tests/utils.py new file mode 100644 index 0000000..5f9b5b8 --- /dev/null +++ b/tests/utils.py @@ -0,0 +1,12 @@ +import os +import json + + +def get_data(file_name): + path = os.path.join('./tests/data', file_name + '.json') + path = os.path.abspath(path) + + with open(path) as fl: + data = json.load(fl) + + return data From 66170fe345adb95d5dffbe247ac6edcc5ec38b0a Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 14 Aug 2017 20:25:39 -0400 Subject: [PATCH 28/51] added slides unittests --- .gitignore | 1 + google_objects/__init__.py | 18 +- google_objects/auth.py | 29 +- google_objects/drive/core.py | 95 +- google_objects/sheets/core.py | 111 +- google_objects/slides/core.py | 280 +- google_objects/slides/updates.py | 2 +- tests/data/about.json | 239 + tests/data/copy_file.json | 81 + tests/data/get_file.json | 84 + tests/data/page.json | 215 + tests/data/permission.json | 10 + tests/data/presentation.json | 17917 +++++++++++++++++++++++++++++ tests/data/spreadsheet.json | 4 +- tests/drive_test.py | 67 + tests/legacy/conftest.py | 22 - tests/legacy/test_drive.py | 48 - tests/legacy/test_sheets.py | 55 - tests/legacy/test_slides.py | 72 - tests/sheets_test.py | 15 +- tests/slides_test.py | 39 + 21 files changed, 18922 insertions(+), 482 deletions(-) create mode 100644 tests/data/about.json create mode 100644 tests/data/copy_file.json create mode 100644 tests/data/get_file.json create mode 100644 tests/data/page.json create mode 100644 tests/data/permission.json create mode 100644 tests/data/presentation.json create mode 100644 tests/drive_test.py delete mode 100644 tests/legacy/conftest.py delete mode 100644 tests/legacy/test_drive.py delete mode 100644 tests/legacy/test_sheets.py delete mode 100644 tests/legacy/test_slides.py create mode 100644 tests/slides_test.py diff --git a/.gitignore b/.gitignore index 3a30809..6a2572f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ build/ *_creds.json .cache/ .env +env.sh diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 347237f..dae5640 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -import os import logging from apiclient import discovery @@ -9,16 +8,6 @@ from google_objects.utils import set_private_attrs from google_objects.utils import keys_to_snake, keys_to_camel -SCOPES = { - 'drive', - 'spreadsheets' -} - - -def _gen_scopes(scopes): - return ['https://www.googleapis.com/auth/' + each for each in scopes] - - # sets default logging handler to avoid "No handler found" warnings. try: # for Python 2.7+ @@ -61,7 +50,7 @@ def from_service_account(cls, service, version, err = 'Please provide an a path to your service credentals.' raise ValueError(err) - http_client = service_account_creds(creds_path, user, scope=_gen_scope(scope)) + http_client = service_account_creds(creds_path, user, scope=scope) resource = discovery.build(service, version, http=http_client) return cls(resource) @@ -77,18 +66,17 @@ def __init__(self, **kwargs): """Set Resource corresponding **kwargs to private attributes. """ + self.data = keys_to_snake(kwargs) set_private_attrs(self, kwargs) @classmethod def from_existing(cls, data, *args): - new_data = keys_to_snake(data) - return cls(*args, **new_data) + return cls(*args, **data) def serialize(self): """convert __dict__ keys to camel case, get intersection of this and _properties """ - return keys_to_camel(self.data) diff --git a/google_objects/auth.py b/google_objects/auth.py index 71a19f6..326ea52 100644 --- a/google_objects/auth.py +++ b/google_objects/auth.py @@ -1,7 +1,16 @@ import os import httplib2 -from apiclient import discovery +# from apiclient import discovery + +_SCOPES = { + 'drive', + 'spreadsheets' +} + + +def _gen_scopes(scopes): + return ['https://www.googleapis.com/auth/' + each for each in scopes] def service_account_creds(creds_path, delegated_user=None, scope=None): @@ -24,21 +33,3 @@ def service_account_creds(creds_path, delegated_user=None, scope=None): creds = creds.create_delegated(user) return creds.authorize(httplib2.Http()) - - -def build_resource(service, version, creds=None, api_key=None, **kwargs): - """Create an API specific HTTP resource.""" - - if not (api_key or creds): - raise ValueError('Credentials or API Key Required') - - if api_key: - resource = discovery.build( - service, version, developerKey=api_key, **kwargs - ) - - if creds: - http = creds.authorize(httplib2.Http()) - resource = discovery.build(service, version, http=http, **kwargs) - - return resource diff --git a/google_objects/drive/core.py b/google_objects/drive/core.py index 02f2bd7..9cd6791 100644 --- a/google_objects/drive/core.py +++ b/google_objects/drive/core.py @@ -30,16 +30,15 @@ class DriveClient(GoogleClient): callback: receving webook URL. """ - def __init__(self, credentials=None, api_key=None, callback=None): - """Google Drive API client, exposes - collection resources - """ - super(self.__class__, self).__init__(credentials, api_key) - self._resource = self.build('drive', 'v3') - self.callback = callback + @classmethod + def from_service_account(cls, **kwargs): + kwargs['scope'] = ['drive'] + kwargs['service'] = 'drive' + kwargs['version'] = 'v3' + return super().from_service_account(**kwargs) def get_about(self, fields=['user']): - data = self._resource.about().get( + data = self.resource.about().get( fields=', '.join(fields) ).execute() @@ -54,7 +53,7 @@ def get_file(self, file_id): """ - data = self._resource.files().get( + data = self.resource.files().get( fileId=file_id ).execute() @@ -71,11 +70,11 @@ def copy_file(self, file_id, file_body=None): # get old file metadata if none provided if not file_body: - file_body = self._resource.files().get( + file_body = self.resource.files().get( fileId=file_id ).execute() - new_file = self._resource.files().copy( + new_file = self.resource.files().copy( fileId=file_id, body=file_body, fields='id, webViewLink' @@ -83,7 +82,8 @@ def copy_file(self, file_id, file_body=None): return File.from_existing(new_file, self) - def list_files(self, file_type=None, parents=[], fields=['files(id, name)']): + def list_files(self, file_type=None, + parents=[], fields=['files(id, name)']): """Shows basic usage of the Google Drive API. Creates a Google Drive API service object and outputs the names and IDs @@ -95,21 +95,21 @@ def list_files(self, file_type=None, parents=[], fields=['files(id, name)']): query = '' if file_type: + prfx = 'application/vnd.google-apps.' query = query + "mimeType='{}'".format('application/vnd.google-apps.' + file_type.lower()) for p in parents: query = query + ' and \'{}\' in parents'.format(p) - result = self._resource.files().list( - q=query, - pageSize=100, - # fields=fields + result = self.resource.files().list( + q=query, pageSize=100, # fields=fields ).execute() files = result.get('files') return [File.from_existing(each, self) for each in files] - def watch_file(self, file_id, channel_id=str(uuid.uuid4()), callback=None, type='webhook'): + def watch_file(self, file_id, + channel_id=None, callback=None, type='webhook'): """Commences push notifications for a file resource, depends on callback url being set on instance. @@ -121,20 +121,20 @@ def watch_file(self, file_id, channel_id=str(uuid.uuid4()), callback=None, type= raise ValueError('Callback URL required to watch resources.') req_body = { - 'id': channel_id, + 'id': channel_id or str(uuid.uuid4()), 'type': type, 'address': callback or self.callback } - result = self._resource.files().watch( - fileId=file_id, - body=req_body + result = self.resource.files().watch( + fileId=file_id, body=req_body ).execute() return keys_to_snake(result) - def create_permission(self, file_id, permission, message=None, notification=True): + def create_permission(self, file_id, + permission, message=None, notification=True): # makes api call - data = self._resource.permissions().create( + data = self.resource.permissions().create( fileId=file_id, body=permission, emailMessage=message, @@ -148,24 +148,25 @@ class About(GoogleObject): """Docstring for User Resource, this is READ ONLY""" - def __init__(self, **kwargs): - super(self.__class__, self).__init__(**kwargs) + @property + def user(self): + return self.data['user'] @property def email(self): - return self._user['email_address'] + return self.user['emailAddress'] @property def name(self): - return self._user['display_name'] + return self.user['displayName'] @property def photo(self): - return self._user['photo_link'] + return self.user['photoLink'] @property def permission_id(self): - return self._user['permission_id'] + return self.user['permissionId'] class File(GoogleObject): @@ -205,38 +206,32 @@ def __init__(self, client=None, **kwargs): self.__new_permissions = [] self.__updates = [] - self.type = kwargs.pop('type', self._default_type) - self.parents = kwargs.pop('parents', []) - # initalize the other properties super(self.__class__, self).__init__(**kwargs) - @classmethod - def from_existing(cls, data, client): - """initiates existing permissions object""" - - new_data = keys_to_snake(data) - return cls(client, **new_data) - @property def id(self): - return self._id or None + return self.data['id'] or None @property def name(self): - return self._name or None + return self.data['name'] or None @name.setter def name(self, val): - self._name = val + self.data['name'] = val @property def url(self): - return self._web_view_link + return self.data['web_view_link'] + + @property + def type_prefix(self): + return self.data['type_prefix'] @property def type(self): - return self._mime_type + return self.data['mime_type'] @type.setter def type(self, value): @@ -249,7 +244,7 @@ def type(self, value): if value not in self._types: raise ValueError - self._mime_type = '{}{}'.format(self._type_prefix, file_type) + self.data['mime_type'] = '{}{}'.format(self.type_prefix, file_type) @property def parents(self): @@ -271,7 +266,7 @@ def copy(self, name=None, parents=[]): return self.client.copy_file(self.id, new) - def list_permissions(self): + def permissions(self): return [Permission(self, **each) for each in self._permissions] def add_permission(self, email, **kwargs): @@ -332,12 +327,12 @@ def __init__(self, file=None, **kwargs): self.file = file - self.email = kwargs.get('email', '') + # self.email = kwargs.get('email', '') self.role = kwargs.pop('role', self._default_role) self.type = kwargs.pop('type', self._default_type) # initalize the other properties - super(self.__class__, self).__init__(**kwargs) + super().__init__(**kwargs) @classmethod def from_existing(cls, data, file): @@ -370,11 +365,11 @@ def type(self, value): @property def email(self): - return self._email_address + return self.data['emailAddress'] @email.setter def email(self, value): # TODO: # add update call if _id is present if len(value.split('@')) is 2: - self._email_address = value + self.data['emailAddress'] = value diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index 260e5cf..83bfc74 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -69,8 +69,8 @@ class SheetsClient(GoogleClient): @classmethod def from_service_account(cls, **kwargs): kwargs['scope'] = ['spreadsheets'] - kwargs['service'] = ['sheets'] - kwargs['version'] = ['v4'] + kwargs['service'] = 'sheets' + kwargs['version'] = 'v4' return super().from_service_account(**kwargs) def get_spreadsheet(self, id): @@ -86,7 +86,26 @@ def get_spreadsheet(self, id): return Spreadsheet.from_existing(data, self) + def create_spreadsheet_from_dataframe(self, frame, **options): + """Creates a new Google Spreadsheet with a provided pandas.DataFrame + object and options. + + :frame: pandas.DataFrame + :**options: Google Spreadsheet initialization options + :returns: Spreadsheet + + """ + self.create_spreadsheet_from_dataframes([frame], **options) + def create_spreadsheet_from_dataframes(self, *frames, **options): + """Creates a new Google Spreadsheet with a provided pandas.DataFrame + objects and options. + + :frame: pandas.DataFrame + :**options: Google Spreadsheet initialization options + :returns: Spreadsheet + + """ if not frames: raise ValueError @@ -163,42 +182,17 @@ def __init__(self, client=None, **kwargs): # initalize the other properties super(self.__class__, self).__init__(**kwargs) - def __iter__(self): - return self.yield_sheets() - - def __getitem__(self, key): - try: - if key.isdigit(): - return self.get_sheet_by_id(key) - else: - return self.get_sheet_by_name(key) - except ValueError: - raise TypeError('Sheet not found') - - def __enter__(self): - return self - - def __exit__(self, exception_type, exception_value, traceback): - self.update() - - @classmethod - def from_existing(cls, data, client=None): - """initiates using existing Spreadsheet resource""" - - new_data = keys_to_snake(data) - return cls(client, **new_data) - @property def id(self): - return self._spreadsheet_id + return self.data['spreadsheet_id'] @property def title(self): - return self._properties.get('title') + return self.data['properties']['title'] @title.setter def title(self, value): - self._properties['title'] = value + self.data['properties']['title'] = value def sheets(self): return [sheet for sheet in self.yield_sheets()] @@ -222,7 +216,7 @@ def get_sheet_by_name(self, name): raise ValueError def yield_sheets(self): - for sheet in self._sheets: + for sheet in self.data['sheets']: yield Sheet.from_existing(sheet, self) def get_range(self, sheet_range): @@ -255,15 +249,33 @@ def set_sheet_id(rng): return rng - _named_ranges = map(set_sheet_id, self._named_ranges) + _named_ranges = map(set_sheet_id, self.datanamed_ranges) return [NamedRange(self, each) for each in _named_ranges] def update(self): if self.__updates: - self.client.push_updates(self._id, self._updates) + self.client.push_updates(self.dataid, self._updates) # TODO: add success handlers del self._updates[:] + def __iter__(self): + return self.yield_sheets() + + def __getitem__(self, key): + try: + if key.isdigit(): + return self.get_sheet_by_id(key) + else: + return self.get_sheet_by_name(key) + except ValueError: + raise TypeError('Sheet not found') + + def __enter__(self): + return self + + def __exit__(self, exception_type, exception_value, traceback): + self.update() + class NamedRange(object): @@ -348,23 +360,23 @@ def from_existing(cls, data, spreadsheet): @property def properties(self): - return self._properties + return self.data['properties'] @properties.setter def properties(self, value): if 'sheet_id' in value: - self._properties['sheet_id'] = value['sheet_id'] + self.properties['sheet_id'] = value['sheet_id'] if 'title' in value: - self._properties['title'] = value['title'] + self.properties['title'] = value['title'] @property def id(self): - return self._properties.get('sheet_id') + return self.properties.get('sheet_id') @property def title(self): - return self._properties.get('title') + return self.properties.get('title') @property def name(self): @@ -372,7 +384,7 @@ def name(self): @title.setter def title(self, value): - self._properties['title'] = value + self.properties['title'] = value def values(self, start=None, end=None): """Returns consisting of all sheet data""" @@ -414,43 +426,36 @@ def __exit__(self, ex_type, ex_val, tb): self.update() def update(self): - self.client.update_values(self.spreadsheet.id, self._range, self.values) + self.client.update_values(self.spreadsheet.id, self.range, self.values) def append(self, data): - self.client.append_values(self.spreadsheet.id, self._range, data) + self.client.append_values(self.spreadsheet.id, self.range, data) def yield_cells(self): for row in self.yield_rows(): for cell in row: yield cell - @property def cells(self): return [cell for cell in self.yield_cells()] def yield_rows(self): - for row in self._values: + for row in self.values: yield row - @property def rows(self): return [row for row in self.yield_rows()] @property def values(self): - return self._values - - @property - def raw_data(self): - # legacy, will be deprecated soon - return self.values + return self.data['values'] @property def range(self): - return self._range + return self.data['range'] def __getitem__(self, key): - return self._values[key] + return self.values['key'] def __setitem__(self, key, item): - self._values[key] = item + self.values[key] = item diff --git a/google_objects/slides/core.py b/google_objects/slides/core.py index 4d23f65..8bc047a 100644 --- a/google_objects/slides/core.py +++ b/google_objects/slides/core.py @@ -7,30 +7,16 @@ """ -import re import logging +import functools -from apiclient.errors import HttpError - -import google_objects.slides.updates +from google_objects.slides import updates from google_objects import GoogleClient, GoogleObject from google_objects.utils import keys_to_snake, set_private_attrs log = logging.getLogger(__name__) -""" -REMOVE GET_MATCHES() on Presentation -""" - -# TODO: - # i/ ensure all cell data reflects table row insertion and deletion - # ii/ page title and descriptor need to be found and initialized - # iii/ change .from_existing to .from_raw - # iv/ add Text nested class for Shape & Table - # v/ generate elements from PageElement constructor using __subclasses__ - - class SlidesClient(GoogleClient): """Google Slides Wrapper Object @@ -43,9 +29,12 @@ class SlidesClient(GoogleClient): are handled by its object. """ - def __init__(self, credentials=None, api_key=None): - super(SlidesClient, self).__init__(credentials, api_key) - self._resource = self.build('slides', 'v1') + @classmethod + def from_service_account(cls, **kwargs): + kwargs['scope'] = ['slides'] + kwargs['service'] = 'slides' + kwargs['version'] = 'v1' + return super().from_service_account(**kwargs) def get_presentation(self, presentation_id): """Returns a Presentation Object @@ -54,7 +43,7 @@ def get_presentation(self, presentation_id): :returns: Model """ - data = self._resource.presentations().get( + data = self.resource.presentations().get( presentationId=presentation_id ).execute() @@ -67,7 +56,7 @@ def get_page(self, presentation_id, page_id): :returns: Model """ - data = self._resource.presentations().pages().get( + data = self.resource.presentations().pages().get( presentationId=presentation_id, pageObjectId=page_id ).execute() @@ -78,7 +67,7 @@ def push_updates(self, presentation_id, updates): """Push Update Requests to Presentation API, throw errors if necessary. """ - self._resource.presentations().batchUpdate( + self.resource.presentations().batchUpdate( presentationId=presentation_id, body={'requests': updates} ).execute() @@ -106,25 +95,20 @@ def __init__(self, client=None, **kwargs): """ self.client = client self.__updates = [] + self.data = kwargs - super(Presentation, self).__init__(**kwargs) + # super(Presentation, self).__init__(**kwargs) @classmethod - def from_existing(cls, data, client=None): - """initiates using existing Spreadsheet resource""" - - new_data = keys_to_snake(data) - return cls(client, **new_data) + def from_existing(cls, data, *args): + return cls(*args, **data) def __enter__(self): return self def __exit__(self, ex_type, ex_val, traceback): - try: - self.update() - return True - except HttpError as e: - raise e + self.update() + return True def __iter__(self): for page in self.slides(): @@ -132,7 +116,7 @@ def __iter__(self): @property def id(self): - return self._presentation_id + return self.data['presentationId'] def update(self): if self.__updates: @@ -157,13 +141,13 @@ def add_update(self, update): return False def slides(self): - return [Page(self, **slide) for slide in self._slides] + return [Page(self, **slide) for slide in self.data['slides']] def masters(self): - return [Page(self, **slide) for slide in self._masters] + return [Page(self, **slide) for slide in self.data['masters']] def layouts(self): - return [Page(self, **slide) for slide in self._layouts] + return [Page(self, **slide) for slide in self.data['layouts']] def elements(self): for page in self.slides(): @@ -174,9 +158,8 @@ def replace_text(self, find, replace, case_sensitive=False): """Add update request for presentation-wide replacement with arg:find to arg:replace """ - self.add_update( - updates.REPLACE_ALL_TEXT(str(find), str(replace), case_sensitive) - ) + ud = updates.REPLACE_ALL_TEXT(str(find), str(replace), case_sensitive) + self.add_update(ud) def get_element_by_id(self, element_id): """Retrieves an element within this presentation identified @@ -209,18 +192,13 @@ class Page(GoogleObject): def __init__(self, presentation=None, **kwargs): self.presentation = presentation - super(Page, self).__init__(**kwargs) - - @classmethod - def from_existing(cls, data, presentation=None): - """initiates using existing Spreadsheet resource""" - - new_data = keys_to_snake(data) - return cls(presentation, **new_data) + self.data = kwargs + # super(Page, self).__init__(**kwargs) @property def id(self): - return self._object_id + return self.data['objectId'] + @property def read_only(self): if not self.presentation: @@ -236,27 +214,27 @@ def __load_element(self, element): """ if 'shape' in element: - log.debug('Shape %s loaded.', element['object_id']) + log.debug('Shape %s loaded.', element['objectId']) return Shape(self.presentation, self, **element) elif 'table' in element: - log.debug('Table %s loaded.', element['object_id']) + log.debug('Table %s loaded.', element['objectId']) return Table(self.presentation, self, **element) elif 'element_group' in element: - log.debug('Element Group %s loaded.', element['object_id']) + log.debug('Element Group %s loaded.', element['objectId']) return [self.__load_element(each) for each in element['children']] # TODO: Implement the following constructors elif 'image' in element: - log.debug('Image %s loaded.', element['object_id']) + log.debug('Image %s loaded.', element['objectId']) return PageElement(self.presentation, self, **element) elif 'video' in element: - log.debug('Video %s loaded.', element['object_id']) + log.debug('Video %s loaded.', element['objectId']) return PageElement(self.presentation, self, **element) elif 'word_art' in element: - log.debug('Word Art %s loaded.', element['object_id']) + log.debug('Word Art %s loaded.', element['objectId']) return PageElement(self.presentation, self, **element) elif 'sheets_chart' in element: - log.debug('Sheets Chart %s loaded.', element['object_id']) + log.debug('Sheets Chart %s loaded.', element['objectId']) return PageElement(self.presentation, self, **element) def yield_elements(self, __sub_list=[]): @@ -266,7 +244,7 @@ def yield_elements(self, __sub_list=[]): is only to add recursive list flattening with respect to nested element groups. """ - for element in __sub_list or self._page_elements: + for element in __sub_list or self.data['pageElements']: if isinstance(element, list): self.yield_elements(element) @@ -321,20 +299,20 @@ class PageElement(GoogleObject): def __init__(self, presentation=None, page=None, **kwargs): self.presentation = presentation self.page = page - - super(PageElement, self).__init__(**kwargs) + self.data = kwargs + # super(PageElement, self).__init__(**kwargs) @property def id(self): - return self._object_id + return self.data['objectId'] @property def size(self): - return self._size + return self.data['size'] @property def transform(self): - return self._transform + return self.data['transform'] def update(self, update): return self.presentation.add_update(update) @@ -343,9 +321,8 @@ def delete(self): """Adds deleteObject request to presentation updates list. """ - self.presentation.add_update( - updates.DELETE_OBJECT(self._id) - ) + ud = updates.DELETE_OBJECT(self.data.id) + self.presentation.add_update(ud) class Shape(PageElement): @@ -361,17 +338,17 @@ def __init__(self, presentation=None, page=None, **kwargs): @property def text(self): - if hasattr(self, '_text'): + if self.data.get('text'): return TextContent( self.presentation, self.page, self, - **self._text + **self.data['text'] ) @property def type(self): - return self._shape_type + return self.data['shapeType'] class Table(PageElement): @@ -392,18 +369,18 @@ def __iter__(self): return self.cells() def rows(self): - for row in self._table_rows: - yield [self.Cell(self, cell) for cell in row.get('table_cells')] + for row in self.data['tableRows']: + yield [self.Cell(self, cell) for cell in row.get('tableCells')] def cells(self): - for row in self._table_rows: - for cell in row.get('table_cells'): + for row in self.data['tableRows']: + for cell in row.get('tableCells'): yield self.Cell(self, **cell) def get_cell(self, row, column): """Fetches cell data and returns as object.""" - cell_data = self._table_rows[row]['table_cells'][column] + cell_data = self.data['tableRows'][row]['tableCells'][column] return self.Cell(self, **cell_data) class Cell(GoogleObject): @@ -420,20 +397,24 @@ def text(self): self.table.presentation, self.table.page, self.table, - **self._text + **self.data.text ) + @property + def location(self): + return self.data['location'] + @property def row_index(self): - return self._location.get('row_index') + return self.location['row_index'] @property def column_index(self): - return self._location.get('column_index') + return self.location['column_index'] @property - def location(self): - return (self.row_index, self.column_index) + def position(self): + return self.row_index, self.column_index class TextContent(GoogleObject): @@ -446,77 +427,98 @@ def __init__(self, presentation=None, page=None, element=None, **kwargs): self.presentation = presentation self.page = page self.element = element + self.data = kwargs + # super(TextContent, self).__init__(**kwargs) + + def yield_elements(self): + for text_element in self.data['textElements']: + yield TextElement(self, self.element, **text_element) - super(TextContent, self).__init__(**kwargs) + def elements(self): + return [elem for elem in self.yield_elements()] def __iter__(self): - for text_element in self._text_elements: - yield self.TextElement(self, self.element, **text_element) + self.yield_elements() - class TextElement(GoogleObject): - _properties = { - 'startIndex', - 'endIndex', - 'paragraphMarker', - 'textRun', - 'autoText' - } +class TextElement(GoogleObject): - def __init__(self, text_content, page_element, **kwargs): - self.text_content = text_content - self.page_element = page_element - super(TextContent.TextElement, self).__init__(**kwargs) + _properties = { + 'startIndex', + 'endIndex', + 'paragraphMarker', + 'textRun', + 'autoText' + } - @property - def start_index(self): - return self._start_index + def __init__(self, text_content, page_element, **kwargs): + self.text_content = text_content + self.page_element = page_element + self.data = kwargs + + # set update partials + self.delete_text = functools.partial( + updates.DELETE_TEXT, + row=getattr(self.page_element, 'startIndex', None), + col=getattr(self.page_element, 'endIndex', None), + start=self.startIndex, + end=self.end_index + ) + self.insert_text = functools.partial( + updates.INSERT_TEXT, + obj_id=self.id, + start=self.start_index + ) - @property - def end_index(self): - return self._end_index + # super(TextContent.TextElement, self).__init__(**kwargs) - @property - def text(self): - if hasattr(self, '_text_run'): - return self._text_run['content'] - - @text.setter - def text(self, value): - if not self._text: - self.page_element.update( - updates.DELETE_TEXT( - self.page_element.id, - row=getattr(self.page_element, 'start_index', None), - col=getattr(self.page_element, 'end_index', None), - start=self.start_index, - end=self.end_index - ) - ) + @property + def start_index(self): + return self.data['startIndex'] - update_request = updates.INSERT_TEXT( - self.id, value, start=self.start_index - ) - self.page_element.update(update_request) + @property + def end_index(self): + return self.data['endIndex'] - self._text_run['content'] = value + @property + def segment(self): + return self.start_index, self.end_index - @text.deleter - def text(self): - obj_id = self.page_element.id - update_request = updates.DELETE_TEXT( - obj_id, start=self.start_index, end=self.end_index + @property + def text_run(self): + return self.data.get('text_run') + + @property + def text(self): + if self.text_run: + return self.text_run['content'] + + @text.setter + def text(self, value): + if not self.data.text: + ud = updates.DELETE_TEXT( + self.page_element.id, + row=getattr(self.page_element, 'startIndex', None), + col=getattr(self.page_element, 'endIndex', None), + start=self.start_index, + end=self.end_index ) - self.page_element.update(update_request) - - def match(self, regex): - """Returns True or False if regular expression - matches the text inside. - """ - if self.text and re.match(regex, self.text): - return True - else: - return False - - def __str__(self): - return self.text + self.page_element.update(ud) + + update_request = updates.INSERT_TEXT( + value, self.id, start=self.start_index + ) + self.page_element.update(update_request) + + self.text_run['content'] = value + + @text.deleter + def text(self): + obj_id = self.page_element.id + update_request = updates.DELETE_TEXT( + obj_id, start=self.start_index, end=self.end_index + ) + self.page_element.update(update_request) + + def __str__(self): + return self.text diff --git a/google_objects/slides/updates.py b/google_objects/slides/updates.py index 7085623..4daf15d 100644 --- a/google_objects/slides/updates.py +++ b/google_objects/slides/updates.py @@ -18,7 +18,7 @@ def REPLACE_ALL_TEXT(find, replace, case_sensitive=False): } -def INSERT_TEXT(obj_id, text, row=None, column=None, start=0): +def INSERT_TEXT(text, obj_id=None, row=None, column=None, start=0): return { 'insertText': { 'objectId': obj_id, diff --git a/tests/data/about.json b/tests/data/about.json new file mode 100644 index 0000000..a723637 --- /dev/null +++ b/tests/data/about.json @@ -0,0 +1,239 @@ +{ + "kind": "drive#about", + "user": { + "kind": "drive#user", + "displayName": "Test User", + "photoLink": "https://lh6.googleusercontent.com/proxy/Z5KeSUwxyWmRT9HGiVoXxqEp-KcWLSAkEgs3EgSHghCRi1_xPNFwdXbll6ivkDDqhtKabFeH1hw5fT3uDEmYDRVH3cNUXklNfZ0M8yuJ5Bwgu4w-vg=w1920-h216-n", + "me": true, + "permissionId": "1234", + "emailAddress": "test@gmail.com" + }, + "storageQuota": { + "limit": "16106127360", + "usage": "235746198", + "usageInDrive": "22461763", + "usageInDriveTrash": "15039148" + }, + "importFormats": { + "application/x-vnd.oasis.opendocument.presentation": [ + "application/vnd.google-apps.presentation" + ], + "text/tab-separated-values": [ + "application/vnd.google-apps.spreadsheet" + ], + "image/jpeg": [ + "application/vnd.google-apps.document" + ], + "image/bmp": [ + "application/vnd.google-apps.document" + ], + "image/gif": [ + "application/vnd.google-apps.document" + ], + "application/vnd.ms-excel.sheet.macroenabled.12": [ + "application/vnd.google-apps.spreadsheet" + ], + "application/vnd.openxmlformats-officedocument.wordprocessingml.template": [ + "application/vnd.google-apps.document" + ], + "application/vnd.ms-powerpoint.presentation.macroenabled.12": [ + "application/vnd.google-apps.presentation" + ], + "application/vnd.ms-word.template.macroenabled.12": [ + "application/vnd.google-apps.document" + ], + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": [ + "application/vnd.google-apps.document" + ], + "image/pjpeg": [ + "application/vnd.google-apps.document" + ], + "application/vnd.google-apps.script+text/plain": [ + "application/vnd.google-apps.script" + ], + "application/vnd.ms-excel": [ + "application/vnd.google-apps.spreadsheet" + ], + "application/vnd.sun.xml.writer": [ + "application/vnd.google-apps.document" + ], + "application/vnd.ms-word.document.macroenabled.12": [ + "application/vnd.google-apps.document" + ], + "application/vnd.ms-powerpoint.slideshow.macroenabled.12": [ + "application/vnd.google-apps.presentation" + ], + "text/rtf": [ + "application/vnd.google-apps.document" + ], + "text/plain": [ + "application/vnd.google-apps.document" + ], + "application/vnd.oasis.opendocument.spreadsheet": [ + "application/vnd.google-apps.spreadsheet" + ], + "application/x-vnd.oasis.opendocument.spreadsheet": [ + "application/vnd.google-apps.spreadsheet" + ], + "image/png": [ + "application/vnd.google-apps.document" + ], + "application/x-vnd.oasis.opendocument.text": [ + "application/vnd.google-apps.document" + ], + "application/msword": [ + "application/vnd.google-apps.document" + ], + "application/pdf": [ + "application/vnd.google-apps.document" + ], + "application/json": [ + "application/vnd.google-apps.script" + ], + "application/x-msmetafile": [ + "application/vnd.google-apps.drawing" + ], + "application/vnd.openxmlformats-officedocument.spreadsheetml.template": [ + "application/vnd.google-apps.spreadsheet" + ], + "application/vnd.ms-powerpoint": [ + "application/vnd.google-apps.presentation" + ], + "application/vnd.ms-excel.template.macroenabled.12": [ + "application/vnd.google-apps.spreadsheet" + ], + "image/x-bmp": [ + "application/vnd.google-apps.document" + ], + "application/rtf": [ + "application/vnd.google-apps.document" + ], + "application/vnd.openxmlformats-officedocument.presentationml.template": [ + "application/vnd.google-apps.presentation" + ], + "image/x-png": [ + "application/vnd.google-apps.document" + ], + "text/html": [ + "application/vnd.google-apps.document" + ], + "application/vnd.oasis.opendocument.text": [ + "application/vnd.google-apps.document" + ], + "application/vnd.openxmlformats-officedocument.presentationml.presentation": [ + "application/vnd.google-apps.presentation" + ], + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [ + "application/vnd.google-apps.spreadsheet" + ], + "application/vnd.google-apps.script+json": [ + "application/vnd.google-apps.script" + ], + "application/vnd.openxmlformats-officedocument.presentationml.slideshow": [ + "application/vnd.google-apps.presentation" + ], + "application/vnd.ms-powerpoint.template.macroenabled.12": [ + "application/vnd.google-apps.presentation" + ], + "text/csv": [ + "application/vnd.google-apps.spreadsheet" + ], + "application/vnd.oasis.opendocument.presentation": [ + "application/vnd.google-apps.presentation" + ], + "image/jpg": [ + "application/vnd.google-apps.document" + ], + "text/richtext": [ + "application/vnd.google-apps.document" + ] + }, + "exportFormats": { + "application/vnd.google-apps.form": [ + "application/zip" + ], + "application/vnd.google-apps.document": [ + "application/rtf", + "application/vnd.oasis.opendocument.text", + "text/html", + "application/pdf", + "application/epub+zip", + "application/zip", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + "text/plain" + ], + "application/vnd.google-apps.drawing": [ + "image/svg+xml", + "image/png", + "application/pdf", + "image/jpeg" + ], + "application/vnd.google-apps.spreadsheet": [ + "application/x-vnd.oasis.opendocument.spreadsheet", + "text/tab-separated-values", + "application/pdf", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "text/csv", + "application/zip", + "application/vnd.oasis.opendocument.spreadsheet" + ], + "application/vnd.google-apps.script": [ + "application/vnd.google-apps.script+json" + ], + "application/vnd.google-apps.presentation": [ + "application/vnd.oasis.opendocument.presentation", + "application/pdf", + "application/vnd.openxmlformats-officedocument.presentationml.presentation", + "text/plain" + ] + }, + "maxImportSizes": { + "application/vnd.google-apps.document": "10485760", + "application/vnd.google-apps.spreadsheet": "104857600", + "application/vnd.google-apps.presentation": "104857600", + "application/vnd.google-apps.drawing": "2097152" + }, + "maxUploadSize": "5242880000000", + "appInstalled": true, + "folderColorPalette": [ + "#ac725e", + "#d06b64", + "#f83a22", + "#9fe1e7", + "#cca6ac", + "#cabdbf", + "#8f8f8f" + ], + "teamDriveThemes": [ + { + "id": "abacus", + "backgroundImageLink": "https://lh6.googleusercontent.com/proxy/Z5KeSUwxyWmRT9HGiVoXxqEp-KcWLSAkEgs3EgSHghCRi1_xPNFwdXbll6ivkDDqhtKabFeH1hw5fT3uDEmYDRVH3cNUXklNfZ0M8yuJ5Bwgu4w-vg=w1920-h216-n", + "colorRgb": "#ea6100" + }, + { + "id": "blueprints", + "backgroundImageLink": "https://lh3.googleusercontent.com/proxy/UjEpDwYsn-r3TcmSB4k58Z-cKBa_KWgNy5F9sx-O2KGGTJXNXODqmxLJY999NCZG80WDFvs93nF3ISv_qGEiI5slt5eyoFxBCWKuFm873RZEqPy-E6GN4a8=w1920-h216-n", + "colorRgb": "#4285f4" + }, + { + "id": "bok_choy", + "backgroundImageLink": "https://lh6.googleusercontent.com/proxy/xVkWcsvjuebP-UnWCIJp6fEqRUHwIJObjK5KawhB-ReWImKOVk5FnbhqnirdhAuZLS3VWAqnks3-3SDjhQMePR15YYfuF7stMy1R14jdcd2WyhSLex00=w1920-h216-n", + "colorRgb": "#689f38" + }, + { + "id": "books", + "backgroundImageLink": "https://lh4.googleusercontent.com/proxy/6Ok-qHt6muyfFg1x3Nd3y9M_iRUH5_aJRXq9JlTE6Z3a67qUFeVTdpLG80OBKpOtMXXffAPXtHMRkAMbzR-Q1e_dCqCntJAkV_q3U4VftNYC3k_V=w1920-h216-n", + "colorRgb": "#4285f4" + }, + { + "id": "bread", + "backgroundImageLink": "https://lh3.googleusercontent.com/proxy/laR76MvgkpxgcFyKbLRlDHThRQ4PLNNwbzuHzSr_uQAOzxCdGhLFBsdMHk_jVWlFBlLSyqODOoLkCaO_lhmu_9zB1_z81r7fPVDjVL007HcvxXHc=w1920-h216-n", + "colorRgb": "#ef6c00" + }, + { + "id": "cocktails", + "backgroundImageLink": "https://lh6.googleusercontent.com/proxy/qVcF-uCcRs4eNsZFZHKDIiN_qdO20ifgGhQpi1t94SFzROGTb-1Kik2dbJ9_gk9G-QMawqhVQ_OVBE_5ZRAiqjhImQyfGSnnND7BEK1SiQYzRi_LpVfZnQ=w1920-h216-n", + "colorRgb": "#db4437" + } + ] +} diff --git a/tests/data/copy_file.json b/tests/data/copy_file.json new file mode 100644 index 0000000..0ecc6e9 --- /dev/null +++ b/tests/data/copy_file.json @@ -0,0 +1,81 @@ +{ + "kind": "drive#file", + "id": "1Av-N_qtP7Slbs_TkrtCOqt2V3DVrqQbumOaukm-eR8c", + "name": "Copy of Test File", + "mimeType": "application/vnd.google-apps.document", + "starred": false, + "trashed": false, + "explicitlyTrashed": false, + "parents": [ + "p1" + ], + "spaces": [ + "drive" + ], + "version": "45317", + "webViewLink": "https://docs.google.com/document/d/1Av-N_qtP7Slbs_TkrtCOqt2V3DVrqQbumOaukm-eR8c/edit?usp=drivesdk", + "iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.document", + "hasThumbnail": false, + "thumbnailVersion": "0", + "viewedByMe": true, + "viewedByMeTime": "2017-08-13T14:46:00.966Z", + "createdTime": "2017-08-13T14:47:35.643Z", + "modifiedTime": "2017-08-13T14:47:35.643Z", + "modifiedByMeTime": "2017-08-13T14:47:35.643Z", + "modifiedByMe": true, + "owners": [ + { + "kind": "drive#user", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "me": true, + "permissionId": "15318812001084474652", + "emailAddress": "test@gmail.com" + } + ], + "lastModifyingUser": { + "kind": "drive#user", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "me": true, + "permissionId": "15318812001084474652", + "emailAddress": "test@gmail.com" + }, + "shared": false, + "ownedByMe": true, + "capabilities": { + "canAddChildren": false, + "canChangeViewersCanCopyContent": true, + "canComment": true, + "canCopy": true, + "canDelete": true, + "canDownload": true, + "canEdit": true, + "canListChildren": false, + "canMoveItemIntoTeamDrive": true, + "canReadRevisions": true, + "canRemoveChildren": false, + "canRename": true, + "canShare": true, + "canTrash": true, + "canUntrash": true + }, + "viewersCanCopyContent": true, + "writersCanShare": true, + "permissions": [ + { + + + "kind": "drive#permission", + "id": "15318812001084474652", + "type": "user", + "emailAddress": "test@gmail.com", + "role": "owner", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "deleted": false + } + ], + "quotaBytesUsed": "0", + "isAppAuthorized": true +} diff --git a/tests/data/get_file.json b/tests/data/get_file.json new file mode 100644 index 0000000..fac4108 --- /dev/null +++ b/tests/data/get_file.json @@ -0,0 +1,84 @@ +{ + "kind": "drive#file", + "id": "abc123", + "name": "Test File", + "mimeType": "application/vnd.google-apps.document", + "starred": false, + "trashed": false, + "explicitlyTrashed": false, + "parents": [ + "p1", + "p2", + "p3" + ], + "spaces": [ + "drive" + ], + "version": "45306", + "webViewLink": "https://docs.google.com/document/d/1SVLYfA2AaZ6-AIlE92385LTjVnM2goCas04u65D2wMg/edit?usp=drivesdk", + "iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.document", + "hasThumbnail": true, + "thumbnailLink": "https://docs.google.com/feeds/vt?gd=true&id=1SVLYfA2AaZ6-AIlE92385LTjVnM2goCas04u65D2wMg&v=10&s=AMedNnoAAAAAWZCBzEspAQdLJrR67msnrMw8_E5waUNw&sz=s220", + "thumbnailVersion": "10", + "viewedByMe": true, + "viewedByMeTime": "2017-08-13T14:42:48.411Z", + "createdTime": "2017-02-22T20:05:19.576Z", + "modifiedTime": "2017-02-22T20:33:56.207Z", + "modifiedByMeTime": "2017-02-22T20:33:56.207Z", + "modifiedByMe": true, + "owners": [ + { + "kind": "drive#user", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "me": true, + "permissionId": "15318812001084474652", + "emailAddress": "test@gmail.com" + } + ], + "lastModifyingUser": { + "kind": "drive#user", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "me": true, + "permissionId": "15318812001084474652", + "emailAddress": "test@gmail.com" + }, + "shared": false, + "ownedByMe": true, + "capabilities": { + "canAddChildren": false, + "canChangeViewersCanCopyContent": true, + "canComment": true, + "canCopy": true, + "canDelete": true, + "canDownload": true, + "canEdit": true, + "canListChildren": false, + "canMoveItemIntoTeamDrive": true, + "canReadRevisions": true, + "canRemoveChildren": false, + "canRename": true, + "canShare": true, + "canTrash": true, + "canUntrash": true + }, + "viewersCanCopyContent": true, + "writersCanShare": true, + "permissions": [ + { + + + "kind": "drive#permission", + "id": "15318812001084474652", + "type": "user", + "emailAddress": "test@gmail.com", + "role": "owner", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "deleted": false + } + ], + "quotaBytesUsed": "0", + "isAppAuthorized": false +} diff --git a/tests/data/page.json b/tests/data/page.json new file mode 100644 index 0000000..180a1df --- /dev/null +++ b/tests/data/page.json @@ -0,0 +1,215 @@ +{ + "objectId": "p", + "pageElements": [ + { + "objectId": "i0", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.6725, + "scaleY": 0.5263, + "translateX": 3537150, + "translateY": 1578400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 18, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 18, + "textRun": { + "content": "Test Google Sheet\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "CENTERED_TITLE", + "parentObjectId": "g2445947b05_0_11" + } + } + }, + { + "objectId": "i1", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.1569, + "scaleY": 0.1687, + "translateX": 5083950, + "translateY": 3924925, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 39, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 39, + "textRun": { + "content": "Testing python google objects library.\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SUBTITLE", + "parentObjectId": "g2445947b05_0_12" + } + } + } + ], + "slideProperties": { + "layoutObjectId": "g2445947b05_0_4", + "masterObjectId": "g2445947b05_0_0", + "notesPage": { + "objectId": "p:notes", + "pageType": "NOTES", + "pageElements": [ + { + "objectId": "i2", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.032025, + "scaleY": 1.143, + "translateX": 381300, + "translateY": 685800, + "unit": "EMU" + }, + "shape": { + "shapeProperties": { + "outline": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_IMAGE", + "parentObjectId": "n:slide" + } + } + }, + { + "objectId": "i3", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.8288, + "scaleY": 1.3716, + "translateX": 685800, + "translateY": 4343400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "index": 1, + "parentObjectId": "n:text" + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + }, + "notesProperties": { + "speakerNotesObjectId": "i3" + } + } + }, + "revisionId": "LLXjyTB4tNNybg", + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } +} diff --git a/tests/data/permission.json b/tests/data/permission.json new file mode 100644 index 0000000..a9cd0ac --- /dev/null +++ b/tests/data/permission.json @@ -0,0 +1,10 @@ +{ + "kind": "drive#permission", + "id": "abc123", + "type": "user", + "emailAddress": "test@gmail.com", + "role": "reader", + "displayName": "Test User", + "photoLink": "https://lh3.googleusercontent.com/-raH8poOiUI8/AAAAAAAAAAI/AAAAAAAAAK0/F9SRpENb7zo/s64/photo.jpg", + "deleted": false +} diff --git a/tests/data/presentation.json b/tests/data/presentation.json new file mode 100644 index 0000000..3cd3fbd --- /dev/null +++ b/tests/data/presentation.json @@ -0,0 +1,17917 @@ +{ + "presentationId": "abc123", + "pageSize": { + "width": { + "magnitude": 9144000, + "unit": "EMU" + }, + "height": { + "magnitude": 5143500, + "unit": "EMU" + } + }, + "slides": [ + { + "objectId": "p", + "pageElements": [ + { + "objectId": "i0", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.6725, + "scaleY": 0.5263, + "translateX": 3537150, + "translateY": 1578400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 18, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 18, + "textRun": { + "content": "Test Google Sheet\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "CENTERED_TITLE", + "parentObjectId": "g2445947b05_0_11" + } + } + }, + { + "objectId": "i1", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.1569, + "scaleY": 0.1687, + "translateX": 5083950, + "translateY": 3924925, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 39, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 39, + "textRun": { + "content": "Testing python google objects library.\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SUBTITLE", + "parentObjectId": "g2445947b05_0_12" + } + } + } + ], + "slideProperties": { + "layoutObjectId": "g2445947b05_0_4", + "masterObjectId": "g2445947b05_0_0", + "notesPage": { + "objectId": "p:notes", + "pageType": "NOTES", + "pageElements": [ + { + "objectId": "i2", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.032025, + "scaleY": 1.143, + "translateX": 381300, + "translateY": 685800, + "unit": "EMU" + }, + "shape": { + "shapeProperties": { + "outline": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_IMAGE", + "parentObjectId": "n:slide" + } + } + }, + { + "objectId": "i3", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.8288, + "scaleY": 1.3716, + "translateX": 685800, + "translateY": 4343400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "index": 1, + "parentObjectId": "n:text" + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + }, + "notesProperties": { + "speakerNotesObjectId": "i3" + } + } + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_125", + "pageElements": [ + { + "objectId": "g2445947b05_0_126", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.1877, + "scaleY": 0.1539, + "translateX": 805175, + "translateY": 197675, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 15, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 15, + "textRun": { + "content": "This is a mole\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_40" + } + } + }, + { + "objectId": "g2445947b05_0_130", + "size": { + "width": { + "magnitude": 32000, + "unit": "EMU" + }, + "height": { + "magnitude": 21350, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 174.7664, + "scaleY": 174.7658, + "translateX": 1775740.635, + "translateY": 802100, + "unit": "EMU" + }, + "description": "1452646755603.jpeg", + "image": { + "contentUrl": "https://lh5.googleusercontent.com/H5fYL6R-4vyAbDVT1-V0WgxXmzHFi58jpqi0fKmrhZjWhiWpClEEqw_7xb3BrmI1kPaSbqjMqX3jF02a8GSX7O4ZEjHFwhJZ5piSxVkcGjLgzd0jNmIbnHNhtfpdRXDxIJe_BH9a35j8yek1Nk8i", + "imageProperties": { + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "themeColor": "DARK2" + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ], + "slideProperties": { + "layoutObjectId": "g2445947b05_0_36", + "masterObjectId": "g2445947b05_0_0", + "notesPage": { + "objectId": "g2445947b05_0_125:notes", + "pageType": "NOTES", + "pageElements": [ + { + "objectId": "g2445947b05_0_128", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.032, + "scaleY": 1.143, + "translateX": 381300, + "translateY": 685800, + "unit": "EMU" + }, + "shape": { + "shapeProperties": { + "outline": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_IMAGE", + "parentObjectId": "n:slide" + } + } + }, + { + "objectId": "g2445947b05_0_129", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.8288, + "scaleY": 1.3716, + "translateX": 685800, + "translateY": 4343400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "index": 1, + "parentObjectId": "n:text" + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + }, + "notesProperties": { + "speakerNotesObjectId": "g2445947b05_0_129" + } + } + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_131", + "pageElements": [ + { + "objectId": "g2445947b05_0_132", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.3463, + "scaleY": 0.3047, + "translateX": 1297500, + "translateY": 393750, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 20, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 20, + "textRun": { + "content": "List of ingredients\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_40" + } + } + }, + { + "objectId": "g2445947b05_0_136", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.4605, + "scaleY": 0.41, + "translateX": 766450, + "translateY": 2183500, + "unit": "EMU" + }, + "shape": { + "shapeType": "RIGHT_ARROW", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "themeColor": "DARK2" + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_137", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.2448, + "scaleY": 0.8288, + "translateX": 3591650, + "translateY": 1880500, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 5, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "magnitude": 36, + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "magnitude": 18, + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "kix.3p2ifdtjiw0w", + "glyph": "1.", + "bulletStyle": { + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + } + } + } + } + }, + { + "endIndex": 5, + "textRun": { + "content": "Eggs\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 5, + "endIndex": 10, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "magnitude": 36, + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "magnitude": 18, + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "kix.3p2ifdtjiw0w", + "glyph": "2.", + "bulletStyle": { + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "underline": false + } + } + } + }, + { + "startIndex": 5, + "endIndex": 10, + "textRun": { + "content": "Milk\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 10, + "endIndex": 17, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "magnitude": 36, + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "magnitude": 18, + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "kix.3p2ifdtjiw0w", + "glyph": "3.", + "bulletStyle": { + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "underline": false + } + } + } + }, + { + "startIndex": 10, + "endIndex": 17, + "textRun": { + "content": "Butter\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 17, + "endIndex": 22, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "magnitude": 36, + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "magnitude": 18, + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "kix.3p2ifdtjiw0w", + "glyph": "4.", + "bulletStyle": { + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "underline": false + } + } + } + }, + { + "startIndex": 17, + "endIndex": 22, + "textRun": { + "content": "Salt\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 22, + "endIndex": 29, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "magnitude": 36, + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "magnitude": 18, + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "kix.3p2ifdtjiw0w", + "glyph": "5.", + "bulletStyle": { + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "underline": false + } + } + } + }, + { + "startIndex": 22, + "endIndex": 29, + "textRun": { + "content": "Pepper\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ], + "lists": { + "kix.3p2ifdtjiw0w": { + "listId": "kix.3p2ifdtjiw0w", + "nestingLevel": { + "0": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "1": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "2": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "3": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "4": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "5": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "6": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "7": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "8": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ], + "slideProperties": { + "layoutObjectId": "g2445947b05_0_36", + "masterObjectId": "g2445947b05_0_0", + "notesPage": { + "objectId": "g2445947b05_0_131:notes", + "pageType": "NOTES", + "pageElements": [ + { + "objectId": "g2445947b05_0_134", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.032, + "scaleY": 1.143, + "translateX": 381300, + "translateY": 685800, + "unit": "EMU" + }, + "shape": { + "shapeProperties": { + "outline": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_IMAGE", + "parentObjectId": "n:slide" + } + } + }, + { + "objectId": "g2445947b05_0_135", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.8288, + "scaleY": 1.3716, + "translateX": 685800, + "translateY": 4343400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "index": 1, + "parentObjectId": "n:text" + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + }, + "notesProperties": { + "speakerNotesObjectId": "g2445947b05_0_135" + } + } + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_138", + "pageElements": [ + { + "objectId": "g2445947b05_0_139", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.3463, + "scaleY": 0.3047, + "translateX": 1297500, + "translateY": 393750, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 11, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 11, + "textRun": { + "content": "Table Test\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_40" + } + } + }, + { + "objectId": "g2445947b05_0_143", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1, + "scaleY": 1, + "translateX": 952500, + "translateY": 2000250, + "unit": "EMU" + }, + "table": { + "rows": 3, + "columns": 4, + "tableRows": [ + { + "rowHeight": { + "magnitude": 381000, + "unit": "EMU" + }, + "tableCells": [ + { + "location": { + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 11, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 11, + "textRun": { + "content": "firstfirst\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "columnIndex": 1 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 7, + "textRun": { + "content": "second\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "columnIndex": 2 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 6, + "textRun": { + "content": "third\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "columnIndex": 3 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 7, + "textRun": { + "content": "fourth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + } + ] + }, + { + "rowHeight": { + "magnitude": 381000, + "unit": "EMU" + }, + "tableCells": [ + { + "location": { + "rowIndex": 1 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 6, + "textRun": { + "content": "fifth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "rowIndex": 1, + "columnIndex": 1 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 6, + "textRun": { + "content": "sixth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "rowIndex": 1, + "columnIndex": 2 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 8, + "textRun": { + "content": "seventh\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "rowIndex": 1, + "columnIndex": 3 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 7, + "textRun": { + "content": "eighth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + } + ] + }, + { + "rowHeight": { + "magnitude": 381000, + "unit": "EMU" + }, + "tableCells": [ + { + "location": { + "rowIndex": 2 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 6, + "textRun": { + "content": "ninth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "rowIndex": 2, + "columnIndex": 1 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 6, + "textRun": { + "content": "tenth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "rowIndex": 2, + "columnIndex": 2 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 9, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 9, + "textRun": { + "content": "eleventh\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + }, + { + "location": { + "rowIndex": 2, + "columnIndex": 3 + }, + "rowSpan": 1, + "columnSpan": 1, + "text": { + "textElements": [ + { + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + } + } + }, + { + "endIndex": 8, + "textRun": { + "content": "twelfth\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 14, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ] + }, + "tableCellProperties": { + "tableCellBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + } + } + } + ] + } + ], + "tableColumns": [ + { + "columnWidth": { + "magnitude": 1809750, + "unit": "EMU" + } + }, + { + "columnWidth": { + "magnitude": 1809750, + "unit": "EMU" + } + }, + { + "columnWidth": { + "magnitude": 1809750, + "unit": "EMU" + } + }, + { + "columnWidth": { + "magnitude": 1809750, + "unit": "EMU" + } + } + ] + } + } + ], + "slideProperties": { + "layoutObjectId": "g2445947b05_0_36", + "masterObjectId": "g2445947b05_0_0", + "notesPage": { + "objectId": "g2445947b05_0_138:notes", + "pageType": "NOTES", + "pageElements": [ + { + "objectId": "g2445947b05_0_141", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.032, + "scaleY": 1.143, + "translateX": 381300, + "translateY": 685800, + "unit": "EMU" + }, + "shape": { + "shapeProperties": { + "outline": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_IMAGE", + "parentObjectId": "n:slide" + } + } + }, + { + "objectId": "g2445947b05_0_142", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.8288, + "scaleY": 1.3716, + "translateX": 685800, + "translateY": 4343400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "index": 1, + "parentObjectId": "n:text" + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + }, + "notesProperties": { + "speakerNotesObjectId": "g2445947b05_0_142" + } + } + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + } + ], + "title": "Test Google Presentation", + "masters": [ + { + "objectId": "g2445947b05_0_0", + "pageType": "MASTER", + "pageElements": [ + { + "objectId": "g2445947b05_0_1", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.8402, + "scaleY": 0.1909, + "translateX": 311700, + "translateY": 445025, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "1": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "2": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "3": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "4": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "5": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "6": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "7": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + }, + "8": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Montserrat", + "fontSize": { + "magnitude": 28, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Montserrat", + "weight": 400 + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + }, + "placeholder": { + "type": "TITLE" + } + } + }, + { + "objectId": "g2445947b05_0_2", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.8402, + "scaleY": 1.1388, + "translateX": 311700, + "translateY": 1152475, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 13, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "lineSpacing": 115, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "magnitude": 16, + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 13, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "1": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "2": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "3": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "4": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "5": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "6": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "7": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + }, + "8": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + }, + "placeholder": { + "type": "BODY" + } + } + }, + { + "objectId": "g2445947b05_0_3", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "END", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "NEVER_COLLAPSE" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 10, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "themeColor": "LIGHT1" + } + }, + "bold": false, + "italic": false, + "fontFamily": "Lato", + "fontSize": { + "magnitude": 10, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Lato", + "weight": 400 + } + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER" + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "DARK1" + }, + "alpha": 1 + } + }, + "colorScheme": { + "colors": [ + { + "type": "DARK1", + "color": { + "red": 0.105882354, + "green": 0.12941177, + "blue": 0.17254902 + } + }, + { + "type": "LIGHT1", + "color": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + { + "type": "DARK2", + "color": { + "red": 0.8509804, + "green": 0.8509804, + "blue": 0.8509804 + } + }, + { + "type": "LIGHT2", + "color": { + "red": 0.50980395, + "green": 0.78039217, + "blue": 0.64705884 + } + }, + { + "type": "ACCENT1", + "color": { + "red": 0.003921569, + "green": 0.27058825, + "blue": 0.6745098 + } + }, + { + "type": "ACCENT2", + "color": { + "red": 0.93333334, + "green": 0.80784315, + "blue": 0.101960786 + } + }, + { + "type": "ACCENT3", + "color": { + "red": 0.30588236, + "green": 0.33333334, + "blue": 0.40392157 + } + }, + { + "type": "ACCENT4", + "color": { + "red": 0.95686275, + "green": 0.8392157, + "blue": 0.6784314 + } + }, + { + "type": "ACCENT5", + "color": { + "red": 0.47058824, + "green": 0.5647059, + "blue": 0.8039216 + } + }, + { + "type": "ACCENT6", + "color": { + "red": 0.94509804, + "green": 0.36862746, + "blue": 0.13333334 + } + }, + { + "type": "HYPERLINK", + "color": { + "red": 0.47058824, + "green": 0.5647059, + "blue": 0.8039216 + } + }, + { + "type": "FOLLOWED_HYPERLINK", + "color": { + "red": 0.47058824, + "green": 0.5647059, + "blue": 0.8039216 + } + }, + { + "type": "TEXT1", + "color": { + "red": 0.105882354, + "green": 0.12941177, + "blue": 0.17254902 + } + }, + { + "type": "BACKGROUND1", + "color": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + { + "type": "TEXT2", + "color": { + "red": 0.50980395, + "green": 0.78039217, + "blue": 0.64705884 + } + }, + { + "type": "BACKGROUND2", + "color": { + "red": 0.8509804, + "green": 0.8509804, + "blue": 0.8509804 + } + } + ] + } + }, + "masterProperties": { + "displayName": "Focus" + } + } + ], + "layouts": [ + { + "objectId": "g2445947b05_0_4", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_5", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -0.5479, + "shearY": 0.5479, + "translateX": 9144000, + "translateY": 504.9925, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0303 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_10", + "transform": { + "scaleX": 1, + "scaleY": 0.9964, + "translateY": 415.45500000000004, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_6", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 1.7179, + "shearY": -1.7176, + "translateX": 4.922499999999999, + "translateY": 5153025, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0303 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_7", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 1.3323, + "shearY": -1.3322, + "translateY": 5142575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0303 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_8", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.7667, + "shearY": -0.7666, + "translateX": 1496.0325, + "translateY": 2299875, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_9", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.7667, + "scaleY": 0.7666, + "translateX": 2952921.095, + "translateY": 590034.96, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_11", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.6725, + "scaleY": 0.5263, + "translateX": 3537150, + "translateY": 1578400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 40, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "CENTERED_TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_12", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.1569, + "scaleY": 0.1687, + "translateX": 5083950, + "translateY": 3924925, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SUBTITLE", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_13", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "TITLE", + "displayName": "Title slide" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_14", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_33", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_15", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -1.5792, + "shearY": 1.578, + "translateX": 9144000, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0346 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_16", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -1.4289, + "shearY": 1.4327, + "translateX": 9133525, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0346 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_17", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 5618399.22, + "translateY": 2045268.36, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_18", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 6658657.0325, + "translateY": 1443955.665, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_19", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 5987080.859999999, + "translateY": 3278265.235, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_20", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 7030914.845, + "translateY": 2676952.54, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_21", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 6675341.4075, + "translateY": 2670817.97, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_22", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 7716899.22, + "translateY": 2069505.2725000002, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_23", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 6861140.625, + "translateY": 3286610.1575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_24", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8774066.407499999, + "translateY": 2692963.2825, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_25", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8953882.032499999, + "translateY": 3308755.47, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_26", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 7047599.22, + "translateY": 3903814.845, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_27", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8085449.22, + "translateY": 3302501.9525, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_28", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 7227414.0625, + "translateY": 4519607.0325, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_29", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8271248.4375, + "translateY": 3918294.14, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_30", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 8102490.625, + "translateY": 4527272.6575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_31", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 9143332.8125, + "translateY": 3925960.1575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_32", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 8288289.845, + "translateY": 5143064.845, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_34", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.529, + "scaleY": 0.3829, + "translateX": 823850, + "translateY": 2053000, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_35", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "SECTION_HEADER", + "displayName": "Section header" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_36", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_39", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_37", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateY": 1189801.3675, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_38", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 1037850, + "translateY": 588488.6725, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_40", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.3463, + "scaleY": 0.3047, + "translateX": 1297500, + "translateY": 393750, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_41", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.3463, + "scaleY": 0.9704, + "translateX": 1297500, + "translateY": 1567550, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_42", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "TITLE_AND_BODY", + "displayName": "Title and body" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_43", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_46", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_44", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateY": 1189801.3675, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_45", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 1037850, + "translateY": 588488.6725, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_47", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.3463, + "scaleY": 0.3047, + "translateX": 1297500, + "translateY": 393750, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_48", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.1344, + "scaleY": 0.9704, + "translateX": 1297500, + "translateY": 1567550, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_49", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.1344, + "scaleY": 0.9704, + "translateX": 4933221.095, + "translateY": 1567550, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "index": 1, + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_50", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "TITLE_AND_TWO_COLUMNS", + "displayName": "Title and two columns" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_51", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_54", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_52", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateY": 1189801.3675, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_53", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 1037850, + "translateY": 588488.6725, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_55", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.3463, + "scaleY": 0.3047, + "translateX": 1297500, + "translateY": 393750, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_56", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "TITLE_ONLY", + "displayName": "Title only" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_57", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_60", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_58", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateY": 1189801.3675, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_59", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 1037850, + "translateY": 588488.6725, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_61", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.2663, + "scaleY": 0.4977, + "translateX": 1297500, + "translateY": 393750, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_62", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.2663, + "scaleY": 0.8053, + "translateX": 1297500, + "translateY": 1972550, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_63", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "ONE_COLUMN_TEXT", + "displayName": "One column text" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_64", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_83", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_65", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -1.5792, + "shearY": 1.5782, + "translateX": 9144000, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0346 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_66", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -1.4289, + "shearY": 1.4329, + "translateX": 9133525, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0346 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_67", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 5618399.22, + "translateY": 2045441.4075, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_68", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 6658657.0325, + "translateY": 1444077.8325, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_69", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 5987080.859999999, + "translateY": 3278542.5775, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_70", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 7030914.845, + "translateY": 2677178.9075, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_71", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 6675341.4075, + "translateY": 2671043.75, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_72", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 7716899.22, + "translateY": 2069680.2725000002, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_73", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 6861140.625, + "translateY": 3286888.2825, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_74", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8774066.407499999, + "translateY": 2693191.015, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_75", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8953882.032499999, + "translateY": 3309035.5475, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_76", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 7047599.22, + "translateY": 3904144.9225, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_77", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8085449.22, + "translateY": 3302781.25, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_78", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 7227414.0625, + "translateY": 4519989.0625, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_79", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8271248.4375, + "translateY": 3918625.39, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_80", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 8102490.625, + "translateY": 4527655.859999999, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_81", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 9143332.8125, + "translateY": 3926292.1875, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_82", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 8288289.845, + "translateY": 5143500, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_84", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.529, + "scaleY": 1.1737, + "translateX": 823850, + "translateY": 866775, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_85", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "MAIN_POINT", + "displayName": "Main point" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_86", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_89", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_87", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateY": 1189801.3675, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_88", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 1037850, + "translateY": 588488.6725, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_90", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.0121, + "scaleY": 0.5839, + "translateX": 1297500, + "translateY": 1658325, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 24, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_91", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.0121, + "scaleY": 0.1687, + "translateX": 1297500, + "translateY": 3538000, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SUBTITLE", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_92", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.2256, + "scaleY": 0.7825, + "translateX": 4648200, + "translateY": 1696600, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_93", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "SECTION_TITLE_AND_DESCRIPTION", + "displayName": "Section title and description" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_94", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_97", + "transform": { + "scaleX": 1, + "scaleY": 1, + "translateY": 342900, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_95", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.1816, + "shearY": -0.1816, + "translateY": 4330471.875, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0962 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_96", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.1816, + "scaleY": 0.1816, + "translateX": 698925, + "translateY": 3925528.9075, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0962 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_98", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.312, + "scaleY": 0.1746, + "translateX": 812725, + "translateY": 4305375, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "spaceBelow": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 13, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_99", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "CAPTION_ONLY", + "displayName": "Caption" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_100", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_119", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "elementGroup": { + "children": [ + { + "objectId": "g2445947b05_0_101", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -1.5792, + "shearY": 1.578, + "translateX": 9144000, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0346 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_102", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": -1.4289, + "shearY": 1.4327, + "translateX": 9133525, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0346 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_103", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 5618399.22, + "translateY": 2045268.36, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_104", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 6658657.0325, + "translateY": 1443955.665, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_105", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 5987080.859999999, + "translateY": 3278265.235, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_106", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 7030914.845, + "translateY": 2676952.54, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_107", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 6675341.4075, + "translateY": 2670817.97, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_108", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 7716899.22, + "translateY": 2069505.2725000002, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT2" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_109", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 6861140.625, + "translateY": 3286610.1575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_110", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8774066.407499999, + "translateY": 2692963.2825, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_111", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8953882.032499999, + "translateY": 3308755.47, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_112", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 7047599.22, + "translateY": 3903814.845, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_113", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8085449.22, + "translateY": 3302501.9525, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_114", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 7227414.0625, + "translateY": 4519607.0325, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "ACCENT1" + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_115", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 8271248.4375, + "translateY": 3918294.14, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_116", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 8102490.625, + "translateY": 4527272.6575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_117", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": -0.2696, + "scaleY": 0.2696, + "translateX": 9143332.8125, + "translateY": 3925960.1575, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + }, + { + "objectId": "g2445947b05_0_118", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "shearX": 0.2696, + "shearY": -0.2696, + "translateX": 8288289.845, + "translateY": 5143064.845, + "unit": "EMU" + }, + "shape": { + "shapeType": "DIAGONAL_STRIPE", + "shapeProperties": { + "shapeBackgroundFill": { + "solidFill": { + "color": { + "themeColor": "LIGHT1" + }, + "alpha": 0.0731 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + } + } + } + ] + } + }, + { + "objectId": "g2445947b05_0_120", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.592, + "scaleY": 0.4336, + "translateX": 823850, + "translateY": 1284675, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": " ", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "1": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "2": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "3": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "4": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "5": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "6": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "7": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + }, + "8": { + "bulletStyle": { + "fontSize": { + "magnitude": 80, + "unit": "PT" + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "TITLE", + "parentObjectId": "g2445947b05_0_1" + } + } + }, + { + "objectId": "g2445947b05_0_121", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.592, + "scaleY": 0.4063, + "translateX": 823850, + "translateY": 2643124.22, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + } + }, + "1": { + "bulletStyle": { + } + }, + "2": { + "bulletStyle": { + } + }, + "3": { + "bulletStyle": { + } + }, + "4": { + "bulletStyle": { + } + }, + "5": { + "bulletStyle": { + } + }, + "6": { + "bulletStyle": { + } + }, + "7": { + "bulletStyle": { + } + }, + "8": { + "bulletStyle": { + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "BODY", + "parentObjectId": "g2445947b05_0_2" + } + } + }, + { + "objectId": "g2445947b05_0_122", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "BIG_NUMBER", + "displayName": "Big number" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + }, + { + "objectId": "g2445947b05_0_123", + "pageType": "LAYOUT", + "pageElements": [ + { + "objectId": "g2445947b05_0_124", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 0.1829, + "scaleY": 0.1312, + "translateX": 8472457.8125, + "translateY": 4663216.797499999, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 2, + "paragraphMarker": { + "style": { + "direction": "LEFT_TO_RIGHT" + } + } + }, + { + "endIndex": 1, + "autoText": { + "type": "SLIDE_NUMBER", + "content": "#", + "style": { + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + } + } + } + ] + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "INHERIT" + }, + "outline": { + "propertyState": "INHERIT" + }, + "shadow": { + "propertyState": "INHERIT" + } + }, + "placeholder": { + "type": "SLIDE_NUMBER", + "parentObjectId": "g2445947b05_0_3" + } + } + } + ], + "layoutProperties": { + "masterObjectId": "g2445947b05_0_0", + "name": "BLANK", + "displayName": "Blank" + }, + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "INHERIT" + } + } + } + ], + "locale": "en", + "revisionId": "LLXjyTB4tNNybg", + "notesMaster": { + "objectId": "n", + "pageType": "NOTES_MASTER", + "pageElements": [ + { + "objectId": "n:slide", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 2.032025, + "scaleY": 1.143, + "translateX": 381300, + "translateY": 685800, + "unit": "EMU" + }, + "shape": { + "shapeProperties": { + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID" + } + }, + "placeholder": { + "type": "SLIDE_IMAGE" + } + } + }, + { + "objectId": "n:text", + "size": { + "width": { + "magnitude": 3000000, + "unit": "EMU" + }, + "height": { + "magnitude": 3000000, + "unit": "EMU" + } + }, + "transform": { + "scaleX": 1.8288, + "scaleY": 1.3716, + "translateX": 685800, + "translateY": 4343400, + "unit": "EMU" + }, + "shape": { + "shapeType": "TEXT_BOX", + "text": { + "textElements": [ + { + "endIndex": 1, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "endIndex": 1, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 1, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 1, + "endIndex": 2, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 2, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 2, + "endIndex": 3, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 3, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 3, + "endIndex": 4, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 4, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 4, + "endIndex": 5, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 5, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 5, + "endIndex": 6, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 6, + "glyph": "●", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 6, + "endIndex": 7, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 7, + "glyph": "○", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 7, + "endIndex": 8, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "paragraphMarker": { + "style": { + "lineSpacing": 100, + "alignment": "START", + "indentStart": { + "unit": "PT" + }, + "indentEnd": { + "unit": "PT" + }, + "spaceAbove": { + "unit": "PT" + }, + "spaceBelow": { + "unit": "PT" + }, + "indentFirstLine": { + "unit": "PT" + }, + "direction": "LEFT_TO_RIGHT", + "spacingMode": "COLLAPSE_LISTS" + }, + "bullet": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": 8, + "glyph": "■", + "bulletStyle": { + } + } + } + }, + { + "startIndex": 8, + "endIndex": 9, + "textRun": { + "content": "\n", + "style": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + ], + "lists": { + "bodyPlaceholderListEntity": { + "listId": "bodyPlaceholderListEntity", + "nestingLevel": { + "0": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "1": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "2": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "3": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "4": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "5": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "6": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "7": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + }, + "8": { + "bulletStyle": { + "backgroundColor": { + }, + "foregroundColor": { + "opaqueColor": { + "rgbColor": { + } + } + }, + "bold": false, + "italic": false, + "fontFamily": "Arial", + "fontSize": { + "magnitude": 11, + "unit": "PT" + }, + "baselineOffset": "NONE", + "smallCaps": false, + "strikethrough": false, + "underline": false, + "weightedFontFamily": { + "fontFamily": "Arial", + "weight": 400 + } + } + } + } + } + } + }, + "shapeProperties": { + "shapeBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + }, + "outline": { + "outlineFill": { + "solidFill": { + "color": { + "rgbColor": { + } + }, + "alpha": 1 + } + }, + "weight": { + "magnitude": 9525, + "unit": "EMU" + }, + "dashStyle": "SOLID", + "propertyState": "NOT_RENDERED" + }, + "shadow": { + "type": "OUTER", + "transform": { + "scaleX": 1, + "scaleY": 1, + "unit": "EMU" + }, + "alignment": "BOTTOM_LEFT", + "blurRadius": { + "unit": "EMU" + }, + "color": { + "rgbColor": { + } + }, + "alpha": 1, + "rotateWithShape": false, + "propertyState": "NOT_RENDERED" + } + }, + "placeholder": { + "type": "BODY", + "index": 1 + } + } + } + ], + "pageProperties": { + "pageBackgroundFill": { + "propertyState": "NOT_RENDERED", + "solidFill": { + "color": { + "rgbColor": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + "alpha": 1 + } + }, + "colorScheme": { + "colors": [ + { + "type": "DARK1", + "color": { + } + }, + { + "type": "LIGHT1", + "color": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + { + "type": "DARK2", + "color": { + "red": 0.08235294, + "green": 0.5058824, + "blue": 0.34509805 + } + }, + { + "type": "LIGHT2", + "color": { + "red": 0.9529412, + "green": 0.9529412, + "blue": 0.9529412 + } + }, + { + "type": "ACCENT1", + "color": { + "red": 0.019607844, + "green": 0.5529412, + "blue": 0.78039217 + } + }, + { + "type": "ACCENT2", + "color": { + "red": 0.3137255, + "green": 0.7058824, + "blue": 0.19607843 + } + }, + { + "type": "ACCENT3", + "color": { + "red": 0.92941177, + "green": 0.3372549, + "blue": 0.105882354 + } + }, + { + "type": "ACCENT4", + "color": { + "red": 0.92941177, + "green": 0.9372549 + } + }, + { + "type": "ACCENT5", + "color": { + "red": 0.14117648, + "green": 0.79607844, + "blue": 0.8980392 + } + }, + { + "type": "ACCENT6", + "color": { + "red": 0.39215687, + "green": 0.8980392, + "blue": 0.44705883 + } + }, + { + "type": "HYPERLINK", + "color": { + "red": 0.13333334, + "blue": 0.8 + } + }, + { + "type": "FOLLOWED_HYPERLINK", + "color": { + "red": 0.33333334, + "green": 0.101960786, + "blue": 0.54509807 + } + }, + { + "type": "TEXT1", + "color": { + } + }, + { + "type": "BACKGROUND1", + "color": { + "red": 1, + "green": 1, + "blue": 1 + } + }, + { + "type": "TEXT2", + "color": { + "red": 0.9529412, + "green": 0.9529412, + "blue": 0.9529412 + } + }, + { + "type": "BACKGROUND2", + "color": { + "red": 0.08235294, + "green": 0.5058824, + "blue": 0.34509805 + } + } + ] + } + } + } +} diff --git a/tests/data/spreadsheet.json b/tests/data/spreadsheet.json index 81af02d..7b7d28e 100644 --- a/tests/data/spreadsheet.json +++ b/tests/data/spreadsheet.json @@ -34,8 +34,8 @@ "sheets": [ { "properties": { - "sheetId": 258127222, - "title": "CLSFF Fluxx", + "sheetId": 1234, + "title": "First Sheet", "index": 0, "sheetType": "GRID", "gridProperties": { diff --git a/tests/drive_test.py b/tests/drive_test.py new file mode 100644 index 0000000..9e3d0a3 --- /dev/null +++ b/tests/drive_test.py @@ -0,0 +1,67 @@ +import unittest +from unittest import mock + +from tests.utils import get_data +from google_objects.drive.core import DriveClient +from google_objects.drive.core import About +from google_objects.drive.core import File +from google_objects.drive.core import Permission + +# load google sheets dummy data +about = get_data('about') +get_file = get_data('get_file') +copy_file = get_data('copy_file') +permission = get_data('permission') + +# initialize mock google-api-python-client resource object +mock_resource = mock.Mock() +mock_resource.about().get().execute.return_value = about +mock_resource.files().get().execute.return_value = get_file +mock_resource.files().copy().execute.return_value = copy_file +mock_resource.permissions().create().execute.return_value = permission + + +class TestDrive(unittest.TestCase): + """Test Google Sheets objects""" + + def setUp(self): + self.client = DriveClient(mock_resource) + + def test_about(self): + about = self.client.get_about('abc123') + self.assertIsInstance(about, About) + + self.assertEqual(about.name, 'Test User') + self.assertEqual(about.email, 'test@gmail.com') + self.assertEqual(about.permission_id, '1234') + + def test_get_file(self): + gfile = self.client.get_file('abc123') + self.assertIsInstance(gfile, File) + + self.assertEqual(gfile.id, 'abc123') + self.assertEqual(gfile.name, 'Test File') + self.assertEqual(gfile.type, 'application/vnd.google-apps.document') + + self.assertIn('p1', gfile.parents) + self.assertIn('p2', gfile.parents) + self.assertIn('p3', gfile.parents) + + def test_copy_file(self): + gfile = self.client.copy_file('abc123') + self.assertIsInstance(gfile, File) + + self.assertEqual(gfile.name, 'Copy of Test File') + self.assertEqual(gfile.type, 'application/vnd.google-apps.document') + + def test_permission(self): + gfile = self.client.get_file('abc123') + + for permission in gfile.permissions(): + self.assertIsInstance(permission, Permission) + + permission = gfile.add_permission('test@gmail.com', role='reader') + self.assertEqual(permission.id, 'abc123') + self.assertEqual(permission.type, 'user') + self.assertEqual(permission.email, 'test@gmail.com') + self.assertEqual(permission.role, 'reader') diff --git a/tests/legacy/conftest.py b/tests/legacy/conftest.py deleted file mode 100644 index 27074e5..0000000 --- a/tests/legacy/conftest.py +++ /dev/null @@ -1,22 +0,0 @@ -import pytest -import os - -GOOGLE_SERVICE_NAME = os.getenv('GOOGLE_CREDENTIALS') -GOOGLE_SERVICE_PATH = os.getenv('GOOGLE_SERVICE_PATH') -ADMIN_EMAIL = os.getenv('ADMIN_EMAIL') - - -def _find_credentials(name=GOOGLE_SERVICE_NAME): - return os.path.expanduser(GOOGLE_SERVICE_NAME) - - -@pytest.fixture -def credentials(request): - """Sets Google Service Account Credentials with - Correct scope. - """ - - creds = _find_credentials() - scope = ['drive'] - - return (creds, scope, ADMIN_EMAIL) diff --git a/tests/legacy/test_drive.py b/tests/legacy/test_drive.py deleted file mode 100644 index 65b8985..0000000 --- a/tests/legacy/test_drive.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- - -import pytest -import os - -from oauth2client.service_account import ServiceAccountCredentials -from oauth2client.client import OAuth2Credentials - -from google_objects import DriveClient -from google_objects.drive.core import File, Permission - - -@pytest.fixture -def client(credentials): - return DriveClient.from_service_account(*credentials) - - -def test_file_list(client): - assert client.list_files() - assert client.list_files('folder') - assert client.list_files('document') - - -@pytest.fixture -def drive_file(client): - test_file_id = os.getenv('TEST_FILE') - return client.get_file(test_file_id) - - -def test_file(drive_file): - assert isinstance(drive_file, File) - - # test properties - assert hasattr(drive_file, 'id') - assert hasattr(drive_file, 'type') - - -def test_permissions(drive_file): - permission = drive_file.add_permission( - email='sully4792@gmail.com', - role='commenter', - type='user', - ) - - assert hasattr(permission, 'id') - assert hasattr(permission, 'email') - assert hasattr(permission, 'role') - assert hasattr(permission, 'type') diff --git a/tests/legacy/test_sheets.py b/tests/legacy/test_sheets.py deleted file mode 100644 index 3a8dbec..0000000 --- a/tests/legacy/test_sheets.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- - -import pytest - -import os -import logging - -from google_objects import SheetsClient -from google_objects.sheets.core import Spreadsheet, Sheet, Block - -log = logging.getLogger(__name__) - - -@pytest.fixture -def client(credentials): - return SheetsClient.from_service_account(*credentials) - - -@pytest.fixture -def spreadsheet(client): - sheet_id = os.getenv('TEST_SHEET') - return client.get_spreadsheet(sheet_id) - - -def test_spreadsheet(spreadsheet): - assert isinstance(spreadsheet, Spreadsheet) - - assert hasattr(spreadsheet, 'id') - assert hasattr(spreadsheet, 'title') - - # test blocks - for sheet in spreadsheet: - assert isinstance(sheet, Sheet) - assert hasattr(sheet, 'properties') - assert hasattr(sheet, 'title') - assert hasattr(sheet, 'id') - - block = sheet.values() - assert isinstance(block, Block) - - -def test_sheets(spreadsheet): - for sheet in spreadsheet: - assert isinstance(sheet, Sheet) - - assert hasattr(sheet, 'properties') - assert hasattr(sheet, 'title') - assert hasattr(sheet, 'id') - - block = sheet.values() - assert isinstance(block, Block) - - # test rows - for row in block.rows: - assert hasattr(row, '__iter__') diff --git a/tests/legacy/test_slides.py b/tests/legacy/test_slides.py deleted file mode 100644 index e15c945..0000000 --- a/tests/legacy/test_slides.py +++ /dev/null @@ -1,72 +0,0 @@ -import os -import pytest - -from google_objects import SlidesClient -from google_objects.slides.core import Presentation, Page -from google_objects.slides.core import PageElement, Shape, Table -from google_objects.slides.core import TextContent - - -@pytest.fixture -def client(credentials): - return SlidesClient.from_service_account(*credentials) - - -def test_get_presentation(client): - test_presentation = os.getenv('TEST_PRESENTATION') - presentation = client.get_presentation(test_presentation) - assert isinstance(presentation, Presentation) - - -def test_get_page(client): - test_presentation = os.getenv('TEST_PRESENTATION') - page_id = os.getenv('PAGE') - page = client.get_page(test_presentation, page_id) - assert isinstance(page, Page) - - -@pytest.fixture -def presentation(client): - test_presentation = os.getenv('TEST_PRESENTATION') - return client.get_presentation(test_presentation) - - -def test_elements(presentation): - for page in presentation: - assert isinstance(page, Page) - for element in page: - assert isinstance(element, PageElement) - if isinstance(element, Table): - for cell in element.cells(): - assert isinstance(cell.text, TextContent) - if '_text' in vars(cell): - for text in cell.text: - text = cell.text - for piece in text: - assert piece.end_index > 0 - - if isinstance(element, Shape): - if '_text' in vars(element): - text = element.text - assert isinstance(text, TextContent) - for piece in text: - assert piece.end_index > 0 - - -def test_text(presentation): - regex = os.getenv('REGEX') - - with presentation: - for element in presentation: - if isinstance(element, Shape): - if element.text: - for text in element.text: - if text.match(regex): - pass - - # check all table cells - if isinstance(element, Table): - for cell in element.cells(): - for text in cell.text: - if text.match(regex): - pass diff --git a/tests/sheets_test.py b/tests/sheets_test.py index da68206..3b3e989 100644 --- a/tests/sheets_test.py +++ b/tests/sheets_test.py @@ -25,7 +25,7 @@ def setUp(self): def test_spreadsheets(self): spreadsheet = self.client.get_spreadsheet('abc123') - self.assertEqual(type(spreadsheet), Spreadsheet) + self.assertIsInstance(spreadsheet, Spreadsheet) # test spreadsheet properties self.assertEqual(spreadsheet.title, 'Test Google Spreadsheet') @@ -34,18 +34,21 @@ def test_spreadsheets(self): def test_sheets(self): spreadsheet = self.client.get_spreadsheet('abc123') sheets = spreadsheet.sheets() + self.assertIsInstance(sheets, list) for i, sheet in enumerate(sheets): - self.assertEqual(type(sheet), Sheet) + self.assertIsInstance(sheet, Sheet) + # test sheet properties first_sheet = sheets[0] - self.assertEqual(first_sheet.title, 'CLSFF Fluxx') + self.assertEqual(first_sheet.title, 'First Sheet') + self.assertEqual(first_sheet.id, 1234) def test_values(self): spreadsheet = self.client.get_spreadsheet('abc123') sheets = spreadsheet.sheets() values = sheets[0].values() - self.assertEqual(type(values), Block) + self.assertIsInstance(values, Block) - for val in values: - self.assertEqual(type(val), list) + for row in values: + self.assertIsInstance(row, list) diff --git a/tests/slides_test.py b/tests/slides_test.py new file mode 100644 index 0000000..57a749e --- /dev/null +++ b/tests/slides_test.py @@ -0,0 +1,39 @@ +import unittest +from unittest import mock + +from tests.utils import get_data +from google_objects.slides.core import SlidesClient +from google_objects.slides.core import Presentation +from google_objects.slides.core import Page +from google_objects.slides.core import PageElement + +# load google sheets dummy data +presentation = get_data('presentation') + +# initialize mock google-api-python-client resource object +mock_resource = mock.Mock() +mock_resource.presentations().get().execute.return_value = presentation + + +class TestDrive(unittest.TestCase): + def setUp(self): + self.client = SlidesClient(mock_resource) + + def test_presentation(self): + presentation = self.client.get_presentation('abc123') + self.assertIsInstance(presentation, Presentation) + self.assertEqual(presentation.id, 'abc123') + + def test_pages(self): + presentation = self.client.get_presentation('abc123') + + for slide in presentation.slides(): + self.assertIsInstance(slide, Page) + self.assertIsNotNone(slide.id) + + def test_elements(self): + presentation = self.client.get_presentation('abc123') + + for element in presentation.elements(): + self.assertIsInstance(element, PageElement) + self.assertIsNotNone(element.id) From b19d1b9ac3537bc1574548a426379f2e4394fcc4 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 16 Aug 2017 21:28:22 -0400 Subject: [PATCH 29/51] api data keys no longer converted to snake case --- google_objects/__init__.py | 7 +-- google_objects/drive/core.py | 54 +++++++---------------- google_objects/sheets/core.py | 43 ++++++------------ google_objects/slides/core.py | 33 ++++++-------- google_objects/utils.py | 83 ----------------------------------- 5 files changed, 45 insertions(+), 175 deletions(-) delete mode 100644 google_objects/utils.py diff --git a/google_objects/__init__.py b/google_objects/__init__.py index dae5640..25d8304 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -5,8 +5,6 @@ from apiclient import discovery from google_objects.auth import service_account_creds -from google_objects.utils import set_private_attrs -from google_objects.utils import keys_to_snake, keys_to_camel # sets default logging handler to avoid "No handler found" warnings. try: @@ -66,8 +64,7 @@ def __init__(self, **kwargs): """Set Resource corresponding **kwargs to private attributes. """ - self.data = keys_to_snake(kwargs) - set_private_attrs(self, kwargs) + self.data = kwargs @classmethod def from_existing(cls, data, *args): @@ -77,7 +74,7 @@ def serialize(self): """convert __dict__ keys to camel case, get intersection of this and _properties """ - return keys_to_camel(self.data) + return self.data from .drive.core import DriveClient diff --git a/google_objects/drive/core.py b/google_objects/drive/core.py index 9cd6791..60d326a 100644 --- a/google_objects/drive/core.py +++ b/google_objects/drive/core.py @@ -11,17 +11,10 @@ import logging from .. import GoogleClient, GoogleObject -from ..utils import keys_to_snake, keys_to_camel log = logging.getLogger(__name__) -# TODO: - # i/ add greater permissions functionality - # ii/ change .from_existing to .from_raw - # add SKELETON to set attributes to null when not set - - class DriveClient(GoogleClient): """Google Drive Wrapper Object, @@ -125,11 +118,11 @@ def watch_file(self, file_id, 'type': type, 'address': callback or self.callback } - result = self.resource.files().watch( + resp = self.resource.files().watch( fileId=file_id, body=req_body ).execute() - return keys_to_snake(result) + return resp def create_permission(self, file_id, permission, message=None, notification=True): @@ -207,7 +200,7 @@ def __init__(self, client=None, **kwargs): self.__updates = [] # initalize the other properties - super(self.__class__, self).__init__(**kwargs) + super().__init__(**kwargs) @property def id(self): @@ -223,15 +216,15 @@ def name(self, val): @property def url(self): - return self.data['web_view_link'] + return self.data['webViewLink'] @property def type_prefix(self): - return self.data['type_prefix'] + return self.data['typePrefix'] @property def type(self): - return self.data['mime_type'] + return self.data['mimeType'] @type.setter def type(self, value): @@ -244,15 +237,15 @@ def type(self, value): if value not in self._types: raise ValueError - self.data['mime_type'] = '{}{}'.format(self.type_prefix, file_type) + self.data['mimeType'] = '{}{}'.format(self.type_prefix, file_type) @property def parents(self): - return self._parents + return self.data['parents'] @parents.setter def parents(self, value): - self._parents = value + self.data['parents'] = value def copy(self, name=None, parents=[]): """Copies self, optionally altering @@ -267,7 +260,7 @@ def copy(self, name=None, parents=[]): return self.client.copy_file(self.id, new) def permissions(self): - return [Permission(self, **each) for each in self._permissions] + return [Permission(self, **each) for each in self.data['permissions']] def add_permission(self, email, **kwargs): """initializes new permission objects and @@ -290,7 +283,7 @@ def add_permission(self, email, **kwargs): return created - def start_watching(self, **kwargs): + def watch(self, **kwargs): """Attempts to start receiving push notifications for this file. :channel_id: UUID @@ -317,51 +310,36 @@ class Permission(GoogleObject): # constructors def __init__(self, file=None, **kwargs): - """Initialize Permission Object :data: of Permission file data :level: one of reader, commenter, writer, or owner """ - self.file = file - - # self.email = kwargs.get('email', '') - self.role = kwargs.pop('role', self._default_role) - self.type = kwargs.pop('type', self._default_type) - - # initalize the other properties super().__init__(**kwargs) - @classmethod - def from_existing(cls, data, file): - """initiates existing permissions object""" - - new_data = keys_to_snake(data) - return cls(file, **new_data) - @property def id(self): - return self._id + return self.data['id'] @property def role(self): - return self._role + return self.data.get('role', self._default_role) @role.setter def role(self, value): if value in self._role_levels: - self._role = value + self.data['role'] = value @property def type(self): - return self._type + return self.data.get('type', self._default_type) @type.setter def type(self, value): if value in self._type_levels: - self._type = value + self.data['type'] = value @property def email(self): diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index 83bfc74..ee34df2 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -10,7 +10,6 @@ import logging from .. import GoogleClient, GoogleObject -from ..utils import keys_to_snake log = logging.getLogger(__name__) @@ -130,7 +129,7 @@ def get_values(self, spreadsheet_id, range_name): range=range_name ).execute() - return Block.from_existing(data, client=self) + return Block.from_existing(data, self) def update_values(self, spreadsheet_id, range_name, values, format='RAW'): data = self.resource.spreadsheets().values().update( @@ -180,11 +179,11 @@ def __init__(self, client=None, **kwargs): self.__updates = [] # initalize the other properties - super(self.__class__, self).__init__(**kwargs) + super().__init__(**kwargs) @property def id(self): - return self.data['spreadsheet_id'] + return self.data['spreadsheetId'] @property def title(self): @@ -244,8 +243,8 @@ def named_ranges(self): def set_sheet_id(rng): """If sheet_id isn't present, set it to the ID of the first sheet. """ - if 'sheet_id' not in rng['range']: - rng['range']['sheet_id'] = 0 + if 'sheetId' not in rng['range']: + rng['range']['sheetId'] = 0 return rng @@ -291,8 +290,8 @@ def __init__(self, spreadsheet, named_range): @property def sheet_id(self): - if 'sheet_id' in self.range: - return self.range['sheet_id'] + if 'sheetId' in self.range: + return self.range['sheetId'] @property def sheet_name(self): @@ -345,18 +344,9 @@ class Sheet(GoogleObject): def __init__(self, spreadsheet=None, **kwargs): """Creates a new Sheet Object""" self.spreadsheet = spreadsheet + # self.properties = kwargs.get('properties', {}) - # initalize the other properties - super(self.__class__, self).__init__(**kwargs) - - self.properties = kwargs.get('properties', {}) - - @classmethod - def from_existing(cls, data, spreadsheet): - """initiates using existing Sheet resource""" - - new_data = keys_to_snake(data) - return cls(spreadsheet, **new_data) + super().__init__(**kwargs) @property def properties(self): @@ -364,15 +354,15 @@ def properties(self): @properties.setter def properties(self, value): - if 'sheet_id' in value: - self.properties['sheet_id'] = value['sheet_id'] + if 'sheetId' in value: + self.properties['sheetId'] = value['sheetId'] if 'title' in value: self.properties['title'] = value['title'] @property def id(self): - return self.properties.get('sheet_id') + return self.properties.get('sheetId') @property def title(self): @@ -407,14 +397,7 @@ def __init__(self, client=None, spreadsheet=None, **kwargs): self.spreadsheet = spreadsheet # initalize the other properties - super(self.__class__, self).__init__(**kwargs) - - @classmethod - def from_existing(cls, data, client, spreadsheet=None): - """initiates using existing ValueRange resource""" - - new_data = keys_to_snake(data) - return cls(client, spreadsheet, **new_data) + super().__init__(**kwargs) def __iter__(self): return self.yield_rows() diff --git a/google_objects/slides/core.py b/google_objects/slides/core.py index 8bc047a..9f4f99e 100644 --- a/google_objects/slides/core.py +++ b/google_objects/slides/core.py @@ -12,7 +12,6 @@ from google_objects.slides import updates from google_objects import GoogleClient, GoogleObject -from google_objects.utils import keys_to_snake, set_private_attrs log = logging.getLogger(__name__) @@ -95,9 +94,8 @@ def __init__(self, client=None, **kwargs): """ self.client = client self.__updates = [] - self.data = kwargs - # super(Presentation, self).__init__(**kwargs) + super().__init__(**kwargs) @classmethod def from_existing(cls, data, *args): @@ -192,8 +190,7 @@ class Page(GoogleObject): def __init__(self, presentation=None, **kwargs): self.presentation = presentation - self.data = kwargs - # super(Page, self).__init__(**kwargs) + super().__init__(**kwargs) @property def id(self): @@ -299,8 +296,8 @@ class PageElement(GoogleObject): def __init__(self, presentation=None, page=None, **kwargs): self.presentation = presentation self.page = page - self.data = kwargs - # super(PageElement, self).__init__(**kwargs) + + super().__init__(**kwargs) @property def id(self): @@ -330,11 +327,10 @@ class Shape(PageElement): """Docstring for Shape.""" def __init__(self, presentation=None, page=None, **kwargs): - # set private attrs not done by base class - shape = kwargs.pop('shape') - set_private_attrs(self, shape) + super().__init__(presentation, page, **kwargs) - super(Shape, self).__init__(presentation, page, **kwargs) + shape = kwargs.pop('shape') + self.data.update(shape) @property def text(self): @@ -360,10 +356,10 @@ class Table(PageElement): # that works in tandem with corresponding cells def __init__(self, presentation=None, page=None, **kwargs): - table = kwargs.pop('table') - set_private_attrs(self, table) + super().__init__(presentation, page, **kwargs) - super(Table, self).__init__(presentation, page, **kwargs) + table = kwargs.pop('table') + self.data.update(table) def __iter__(self): return self.cells() @@ -388,7 +384,7 @@ class Cell(GoogleObject): def __init__(self, table, **kwargs): self.table = table - super(Table.Cell, self).__init__(**kwargs) + super().__init__(**kwargs) @property def text(self): @@ -427,8 +423,8 @@ def __init__(self, presentation=None, page=None, element=None, **kwargs): self.presentation = presentation self.page = page self.element = element - self.data = kwargs - # super(TextContent, self).__init__(**kwargs) + + super().__init__(**kwargs) def yield_elements(self): for text_element in self.data['textElements']: @@ -454,7 +450,6 @@ class TextElement(GoogleObject): def __init__(self, text_content, page_element, **kwargs): self.text_content = text_content self.page_element = page_element - self.data = kwargs # set update partials self.delete_text = functools.partial( @@ -470,7 +465,7 @@ def __init__(self, text_content, page_element, **kwargs): start=self.start_index ) - # super(TextContent.TextElement, self).__init__(**kwargs) + super().__init__(**kwargs) @property def start_index(self): diff --git a/google_objects/utils.py b/google_objects/utils.py deleted file mode 100644 index 4603848..0000000 --- a/google_objects/utils.py +++ /dev/null @@ -1,83 +0,0 @@ -""" - -Google Sliders Utility Functions - Wed 14 Sep 10:57:00 2016 - -""" - -import re - - -def set_private_attrs(instance, dt): - """Sets (key, value) pairs of given dictionary - to private attributes (single leading underscore). - - :instance: Instance - :dt: - - """ - - for key, val in dt.items(): - setattr(instance, '_{}'.format(key), val) - # self.__dict__['_{}'.format(key)] = val - - -def to_snake_case(string): - """changes camel_cased strings to snake_case""" - - temp = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', string) - return re.sub('([a-z0-9])([A-Z])', r'\1_\2', temp).lower() - - -def to_camel_case(string): - """changes snake_cased strings to camel cases, - strips leading underscores - """ - - components = string.lstrip('_').split('_') - return components[0] + "".join(x.title() for x in components[1:]) - - -def list_to_snake(a): - newArr = [] - - for i in a: - if isinstance(i, list): - newArr.append(list_to_snake(i)) - elif isinstance(i, dict): - newArr.append(keys_to_snake(i)) - else: - newArr.append(i) - - return newArr - - -def keys_to_snake(dt): - """recursively changes camel_cased keys on argument to - snake case""" - - for key, val in dt.items(): - if isinstance(val, list): - val = list_to_snake(val) - - if isinstance(val, dict): - val = keys_to_snake(val) - - new_key = to_snake_case(key) - dt[new_key] = dt.pop(key) - - return dt - - -def keys_to_camel(dt): - """recursively changes snake_cased keys on argument to - camel_case, strips leading underscores""" - - for key, val in dt.items(): - if isinstance(val, dict): - val = keys_to_camel(val) - - new_key = to_camel_case(key).lstrip('_') - dt[new_key] = dt.pop(key) - - return dt From fbac93cd384d7c38ac6203ea93fa88c0febc85c5 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Fri, 6 Oct 2017 11:33:53 -0400 Subject: [PATCH 30/51] pandas to sheets functionality improved --- google_objects/__init__.py | 2 ++ google_objects/sheets/core.py | 45 +++++++++++++++++++++-------------- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 25d8304..c51edf0 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +import os import logging from apiclient import discovery @@ -44,6 +45,7 @@ def from_service_account(cls, service, version, creds_path=None, user=None, scope=[]): """Authorizes a client from an Service Account Credential File.""" + creds_path = creds_path or os.getenv('GOOGLE_SERVICE_ACCOUNT') if not creds_path: err = 'Please provide an a path to your service credentals.' raise ValueError(err) diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index ee34df2..8bab55f 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -8,25 +8,21 @@ """ import logging +from datetime import datetime from .. import GoogleClient, GoogleObject log = logging.getLogger(__name__) -# TODO: - # i/ ensure all cell data reflects table row insertion and deletion - # ii/ page title and descriptor need to be found and initialized - # iii/ change .from_existing to .from_raw - - def _value_to_cell(val): - if val.isdigit(): + if str(val).isdigit(): try: return {'userEnteredValue': {'numberValue': float(val)}} except: return {'userEnteredValue': {'numberValue': int(val)}} - return {'userEnteredValue': {'stringValue': val}} + + return {'userEnteredValue': {'stringValue': str(val)}} def _cells_to_row(cells): @@ -34,7 +30,7 @@ def _cells_to_row(cells): def _format_sheet(sheet): - title = sheet.get('title', 'NEW SHEET') + title = sheet.get('title') values = sheet.get('values', []) return { 'properties': { @@ -65,12 +61,13 @@ class SheetsClient(GoogleClient): """Creates a Google Sheets Resource""" + service = 'sheets' + version = 'v4' + @classmethod def from_service_account(cls, **kwargs): kwargs['scope'] = ['spreadsheets'] - kwargs['service'] = 'sheets' - kwargs['version'] = 'v4' - return super().from_service_account(**kwargs) + return super().from_service_account(cls.service, cls.version, **kwargs) def get_spreadsheet(self, id): """Returns a Spreadsheet Object @@ -94,7 +91,7 @@ def create_spreadsheet_from_dataframe(self, frame, **options): :returns: Spreadsheet """ - self.create_spreadsheet_from_dataframes([frame], **options) + return self.create_spreadsheet_from_dataframes(frame, **options) def create_spreadsheet_from_dataframes(self, *frames, **options): """Creates a new Google Spreadsheet with a provided pandas.DataFrame @@ -107,19 +104,31 @@ def create_spreadsheet_from_dataframes(self, *frames, **options): """ if not frames: raise ValueError + + time = datetime.now().strftime("%I:%M%p on %B %d, %Y") + title = options.get('Title', 'Generated at {}'.format(time)) + sheets = [] - formatted_frames = [frm.values.tolist() for frm in frames] - return self.create_spreadsheet(self, formatted_frames, **options) + for frame in frames: + # insert header as first row + head, data = frame.columns, frame.values.tolist() + data.insert(0, head) + + # format as google sheet dict + sheet = _format_sheet({'title': title, 'values': data}) + sheets.append(sheet) + + return self.create_spreadsheet(sheets, title=title, **options) def create_spreadsheet(self, sheets=[], **kwargs): data = self.resource.spreadsheets().create( body={ 'properties': kwargs, - 'sheets': [_format_sheet(s) for s in sheets] + 'sheets': sheets } ).execute() - return Spreadsheet.from_existing(data, self) + return Spreadsheet(self, **data) def get_values(self, spreadsheet_id, range_name): """Initialize a new block and return it""" @@ -172,7 +181,7 @@ class Spreadsheet(GoogleObject): """Represents a Google API Spreadsheet object""" - def __init__(self, client=None, **kwargs): + def __init__(self, client, **kwargs): """Creates a new Spreadsheet Object""" self.client = client From 1006bfccfe6397a3d6913049e1cb641e5466e2a2 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 30 Oct 2017 18:20:40 -0400 Subject: [PATCH 31/51] can now retrieve full sheet range as pandas.DataFrame --- .gitignore | 1 + google_objects/sheets/core.py | 16 +++++++++++++++- tests/sheets_test.py | 8 ++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6a2572f..e7842e7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ build/ .cache/ .env env.sh +.vscode/ diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index 8bab55f..11090f0 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -10,6 +10,8 @@ import logging from datetime import datetime +import pandas + from .. import GoogleClient, GoogleObject log = logging.getLogger(__name__) @@ -227,6 +229,10 @@ def yield_sheets(self): for sheet in self.data['sheets']: yield Sheet.from_existing(sheet, self) + def yield_values(self, arg1): + for sheet in self.yield_sheets(): + yield sheet.values() + def get_range(self, sheet_range): """Takes a sheet range and initializes a block object with the raw data and the spreadsheet for update @@ -392,7 +398,9 @@ def values(self, start=None, end=None): block.spreadsheet = self.spreadsheet return block - + + def frame(self): + return self.values().as_df() class Block(GoogleObject): @@ -438,6 +446,12 @@ def yield_rows(self): def rows(self): return [row for row in self.yield_rows()] + def as_df(self, header=True): + df = pandas.DataFrame(self.rows()) + if header: + return df.rename(columns=df.iloc[0]) + return df + @property def values(self): return self.data['values'] diff --git a/tests/sheets_test.py b/tests/sheets_test.py index 3b3e989..c6a8974 100644 --- a/tests/sheets_test.py +++ b/tests/sheets_test.py @@ -1,6 +1,8 @@ import unittest from unittest import mock +import pandas + from tests.utils import get_data from google_objects.sheets.core import SheetsClient from google_objects.sheets.core import Spreadsheet @@ -52,3 +54,9 @@ def test_values(self): for row in values: self.assertIsInstance(row, list) + + def test_frame(self): + spreadsheet = self.client.get_spreadsheet('abc123') + sheets = spreadsheet.sheets() + values = sheets[0].frame() + self.assertIsInstance(values, pandas.DataFrame) From 9f7992301d35f738267dd0568d467e4ba32d3767 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Fri, 3 Nov 2017 14:07:46 -0400 Subject: [PATCH 32/51] header row of pandas.DataFrame is removed when created from Block --- google_objects/sheets/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/google_objects/sheets/core.py b/google_objects/sheets/core.py index 11090f0..ef337e5 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets/core.py @@ -402,6 +402,7 @@ def values(self, start=None, end=None): def frame(self): return self.values().as_df() + class Block(GoogleObject): """Recieves a dictionary corresponding to a @@ -449,8 +450,8 @@ def rows(self): def as_df(self, header=True): df = pandas.DataFrame(self.rows()) if header: - return df.rename(columns=df.iloc[0]) - return df + df = df.rename(columns=df.iloc[0]) + return df.iloc[1:] @property def values(self): From e94101a49921922e2a949b38c89e3357a6d9ee89 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 7 Feb 2018 23:45:05 -0500 Subject: [PATCH 33/51] added fetch-sheet cl utility, package directory compressed --- .gitignore | 3 + bin/fetch-sheet | 40 ++++++++++++ google_objects/__init__.py | 6 +- google_objects/{drive/core.py => drive.py} | 2 +- google_objects/drive/__init__.py | 0 google_objects/{sheets/core.py => sheets.py} | 25 ++++++- google_objects/sheets/__init__.py | 0 google_objects/sheets/updates.py | 21 ------ google_objects/{slides/core.py => slides.py} | 68 +++++++++++++++++--- google_objects/slides/__init__.py | 0 google_objects/slides/updates.py | 51 --------------- setup.py | 1 + tests/drive_test.py | 8 +-- tests/sheets_test.py | 8 +-- tests/slides_test.py | 8 +-- 15 files changed, 144 insertions(+), 97 deletions(-) create mode 100644 bin/fetch-sheet rename google_objects/{drive/core.py => drive.py} (99%) delete mode 100644 google_objects/drive/__init__.py rename google_objects/{sheets/core.py => sheets.py} (94%) delete mode 100644 google_objects/sheets/__init__.py delete mode 100644 google_objects/sheets/updates.py rename google_objects/{slides/core.py => slides.py} (90%) delete mode 100644 google_objects/slides/__init__.py delete mode 100644 google_objects/slides/updates.py diff --git a/.gitignore b/.gitignore index e7842e7..75418a9 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ build/ .env env.sh .vscode/ +Pipfile +Pipfile.lock +.venv/ diff --git a/bin/fetch-sheet b/bin/fetch-sheet new file mode 100644 index 0000000..eacbbb0 --- /dev/null +++ b/bin/fetch-sheet @@ -0,0 +1,40 @@ +#!/usr/bin/env python + +import os +import logging + +import fire + +from google_objects import SheetsClient + +log = logging.getLogger(__name__) + + +class SheetFetcher(object): + + """Command line tool for fetching tabular data + and redirecting it to STDOUT.""" + + def __init__(self, spreadsheet=None, key=None): + """Authenticate the Google API Client and loads the Specified Spreadsheet""" + if not spreadsheet: + raise ValueError("Spreadsheet argument required.") + + if not key: + key = os.getenv('GOOGLE_SHEETS_API_KEY') + + if key: + self.client = SheetsClient.from_api_key(key) + else: + self.client = SheetsClient.from_service_account() + self.spreadsheet = self.client.get_spreadsheet(spreadsheet) + + def sheet(self, sheet='Sheet1'): + sheet = self.spreadsheet.get_sheet_by_name(sheet) + dataframe = sheet.frame() + + print(dataframe.to_json(orient='records')) + + +if __name__ == "__main__": + fire.Fire(SheetFetcher) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index c51edf0..9fc4901 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -79,6 +79,6 @@ def serialize(self): return self.data -from .drive.core import DriveClient -from .sheets.core import SheetsClient -from .slides.core import SlidesClient +from .drive import DriveClient +from .sheets import SheetsClient +from .slides import SlidesClient diff --git a/google_objects/drive/core.py b/google_objects/drive.py similarity index 99% rename from google_objects/drive/core.py rename to google_objects/drive.py index 60d326a..6e7a4bc 100644 --- a/google_objects/drive/core.py +++ b/google_objects/drive.py @@ -10,7 +10,7 @@ import uuid import logging -from .. import GoogleClient, GoogleObject +from google_objects import GoogleClient, GoogleObject log = logging.getLogger(__name__) diff --git a/google_objects/drive/__init__.py b/google_objects/drive/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/google_objects/sheets/core.py b/google_objects/sheets.py similarity index 94% rename from google_objects/sheets/core.py rename to google_objects/sheets.py index ef337e5..07e1266 100644 --- a/google_objects/sheets/core.py +++ b/google_objects/sheets.py @@ -12,7 +12,7 @@ import pandas -from .. import GoogleClient, GoogleObject +from google_objects import GoogleClient, GoogleObject log = logging.getLogger(__name__) @@ -466,3 +466,26 @@ def __getitem__(self, key): def __setitem__(self, key, item): self.values[key] = item + + +def FORMAT_ROW(sheet_id, start, end, rgba): + return { + "repeatCell": { + "range": { + "sheetId": sheet_id, + "startRowIndex": start, + "endRowIndex": end + }, + "cell": { + "userEnteredFormat": { + "backgroundColor": { + "red": rgba[0], + "green": rgba[1], + "blue": rgba[2], + 'alpha': rgba[3] + } + } + }, + "fields": "userEnteredFormat(backgroundColor)" + } + } diff --git a/google_objects/sheets/__init__.py b/google_objects/sheets/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/google_objects/sheets/updates.py b/google_objects/sheets/updates.py deleted file mode 100644 index 7af5efc..0000000 --- a/google_objects/sheets/updates.py +++ /dev/null @@ -1,21 +0,0 @@ -def FORMAT_ROW(sheet_id, start, end, rgba): - return { - "repeatCell": { - "range": { - "sheetId": sheet_id, - "startRowIndex": start, - "endRowIndex": end - }, - "cell": { - "userEnteredFormat": { - "backgroundColor": { - "red": rgba[0], - "green": rgba[1], - "blue": rgba[2], - 'alpha': rgba[3] - } - } - }, - "fields": "userEnteredFormat(backgroundColor)" - } - } diff --git a/google_objects/slides/core.py b/google_objects/slides.py similarity index 90% rename from google_objects/slides/core.py rename to google_objects/slides.py index 9f4f99e..942c5f1 100644 --- a/google_objects/slides/core.py +++ b/google_objects/slides.py @@ -10,7 +10,6 @@ import logging import functools -from google_objects.slides import updates from google_objects import GoogleClient, GoogleObject log = logging.getLogger(__name__) @@ -156,7 +155,7 @@ def replace_text(self, find, replace, case_sensitive=False): """Add update request for presentation-wide replacement with arg:find to arg:replace """ - ud = updates.REPLACE_ALL_TEXT(str(find), str(replace), case_sensitive) + ud = REPLACE_ALL_TEXT(str(find), str(replace), case_sensitive) self.add_update(ud) def get_element_by_id(self, element_id): @@ -318,7 +317,7 @@ def delete(self): """Adds deleteObject request to presentation updates list. """ - ud = updates.DELETE_OBJECT(self.data.id) + ud = DELETE_OBJECT(self.data.id) self.presentation.add_update(ud) @@ -453,14 +452,14 @@ def __init__(self, text_content, page_element, **kwargs): # set update partials self.delete_text = functools.partial( - updates.DELETE_TEXT, + DELETE_TEXT, row=getattr(self.page_element, 'startIndex', None), col=getattr(self.page_element, 'endIndex', None), start=self.startIndex, end=self.end_index ) self.insert_text = functools.partial( - updates.INSERT_TEXT, + INSERT_TEXT, obj_id=self.id, start=self.start_index ) @@ -491,7 +490,7 @@ def text(self): @text.setter def text(self, value): if not self.data.text: - ud = updates.DELETE_TEXT( + ud = DELETE_TEXT( self.page_element.id, row=getattr(self.page_element, 'startIndex', None), col=getattr(self.page_element, 'endIndex', None), @@ -500,7 +499,7 @@ def text(self, value): ) self.page_element.update(ud) - update_request = updates.INSERT_TEXT( + update_request = INSERT_TEXT( value, self.id, start=self.start_index ) self.page_element.update(update_request) @@ -510,10 +509,63 @@ def text(self, value): @text.deleter def text(self): obj_id = self.page_element.id - update_request = updates.DELETE_TEXT( + update_request = DELETE_TEXT( obj_id, start=self.start_index, end=self.end_index ) self.page_element.update(update_request) def __str__(self): return self.text + + +def DELETE_OBJECT(obj_id): + return { + 'deleteObject': { + 'objectId': obj_id + } + } + + +def REPLACE_ALL_TEXT(find, replace, case_sensitive=False): + return { + 'replaceAllText': { + 'replaceText': replace, + 'containsText': { + 'text': find, + 'matchCase': case_sensitive + } + } + } + + +def INSERT_TEXT(text, obj_id=None, row=None, column=None, start=0): + return { + 'insertText': { + 'objectId': obj_id, + 'text': text, + 'cellLocation': { + 'rowIndex': row, + 'columnIndex': column + }, + 'insertionIndex': start + + } + } + + +def DELETE_TEXT(obj_id, row=None, + col=None, start=None, end=None, kind='FIXED_RANGE'): + return { + 'deleteText': { + 'objectId': obj_id, + 'cellLocation': { + 'rowIndex': row, + 'columnIndex': col + }, + 'text_range': { + 'startIndex': start, + 'endIndex': end + + }, + } + } diff --git a/google_objects/slides/__init__.py b/google_objects/slides/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/google_objects/slides/updates.py b/google_objects/slides/updates.py deleted file mode 100644 index 4daf15d..0000000 --- a/google_objects/slides/updates.py +++ /dev/null @@ -1,51 +0,0 @@ -def DELETE_OBJECT(obj_id): - return { - 'deleteObject': { - 'objectId': obj_id - } - } - - -def REPLACE_ALL_TEXT(find, replace, case_sensitive=False): - return { - 'replaceAllText': { - 'replaceText': replace, - 'containsText': { - 'text': find, - 'matchCase': case_sensitive - } - } - } - - -def INSERT_TEXT(text, obj_id=None, row=None, column=None, start=0): - return { - 'insertText': { - 'objectId': obj_id, - 'text': text, - 'cellLocation': { - 'rowIndex': row, - 'columnIndex': column - }, - 'insertionIndex': start - - } - } - - -def DELETE_TEXT(obj_id, row=None, - col=None, start=None, end=None, kind='FIXED_RANGE'): - return { - 'deleteText': { - 'objectId': obj_id, - 'cellLocation': { - 'rowIndex': row, - 'columnIndex': col - }, - 'text_range': { - 'startIndex': start, - 'endIndex': end - - }, - } - } diff --git a/setup.py b/setup.py index ec1e0e7..ea395cf 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,7 @@ install_requires=requires, setup_requires=setup_requirements, tests_require=test_requirements, + scripts=['bin/fetch-sheet'], url='https://github.com/condad/google-objects', download_url='https://github.com/condad/google-objects/tarball/' + version, keywords=['google', 'api', 'wrapper'], diff --git a/tests/drive_test.py b/tests/drive_test.py index 9e3d0a3..8e82ceb 100644 --- a/tests/drive_test.py +++ b/tests/drive_test.py @@ -2,10 +2,10 @@ from unittest import mock from tests.utils import get_data -from google_objects.drive.core import DriveClient -from google_objects.drive.core import About -from google_objects.drive.core import File -from google_objects.drive.core import Permission +from google_objects.drive import DriveClient +from google_objects.drive import About +from google_objects.drive import File +from google_objects.drive import Permission # load google sheets dummy data about = get_data('about') diff --git a/tests/sheets_test.py b/tests/sheets_test.py index c6a8974..faafd7f 100644 --- a/tests/sheets_test.py +++ b/tests/sheets_test.py @@ -4,10 +4,10 @@ import pandas from tests.utils import get_data -from google_objects.sheets.core import SheetsClient -from google_objects.sheets.core import Spreadsheet -from google_objects.sheets.core import Sheet -from google_objects.sheets.core import Block +from google_objects.sheets import SheetsClient +from google_objects.sheets import Spreadsheet +from google_objects.sheets import Sheet +from google_objects.sheets import Block # load google sheets dummy data spreadsheet = get_data('spreadsheet') diff --git a/tests/slides_test.py b/tests/slides_test.py index 57a749e..e470d7b 100644 --- a/tests/slides_test.py +++ b/tests/slides_test.py @@ -2,10 +2,10 @@ from unittest import mock from tests.utils import get_data -from google_objects.slides.core import SlidesClient -from google_objects.slides.core import Presentation -from google_objects.slides.core import Page -from google_objects.slides.core import PageElement +from google_objects.slides import SlidesClient +from google_objects.slides import Presentation +from google_objects.slides import Page +from google_objects.slides import PageElement # load google sheets dummy data presentation = get_data('presentation') From 608d8af6368e766138c4de97579a84568e06eb14 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 12 Feb 2018 14:02:10 -0500 Subject: [PATCH 34/51] renamed command line utility --- .gitignore | 2 ++ bin/{fetch-sheet => sheets-cli} | 7 ++++++- setup.py | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) rename bin/{fetch-sheet => sheets-cli} (84%) mode change 100644 => 100755 diff --git a/.gitignore b/.gitignore index 75418a9..7ea2954 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ env.sh Pipfile Pipfile.lock .venv/ +.eggs/ +*.egg-info/ diff --git a/bin/fetch-sheet b/bin/sheets-cli old mode 100644 new mode 100755 similarity index 84% rename from bin/fetch-sheet rename to bin/sheets-cli index eacbbb0..c95abba --- a/bin/fetch-sheet +++ b/bin/sheets-cli @@ -29,10 +29,15 @@ class SheetFetcher(object): self.client = SheetsClient.from_service_account() self.spreadsheet = self.client.get_spreadsheet(spreadsheet) - def sheet(self, sheet='Sheet1'): + def get(self, sheet='Sheet1'): + """Return a Google Sheet as a list of dictionaries in the 'records' attribute + of the outputted json""" + sheet = self.spreadsheet.get_sheet_by_name(sheet) dataframe = sheet.frame() + records = dataframe.to + print(dataframe.to_json(orient='records')) diff --git a/setup.py b/setup.py index ea395cf..0c8b407 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ sys.exit(0) version = '0.0.3' -requires = ['google-api-python-client>=1.5.3'] +requires = ['google-api-python-client>=1.5.3', 'pandas>=0.22.0'] setup_requirements = ['pytest-runner>=2.0'] test_requirements = ['pytest>=2.8.0'] @@ -22,7 +22,7 @@ install_requires=requires, setup_requires=setup_requirements, tests_require=test_requirements, - scripts=['bin/fetch-sheet'], + scripts=['bin/sheets-cli'], url='https://github.com/condad/google-objects', download_url='https://github.com/condad/google-objects/tarball/' + version, keywords=['google', 'api', 'wrapper'], From 902fd75d05567b4ec78cd365de4c71dac7982785 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Thu, 22 Mar 2018 17:36:14 -0400 Subject: [PATCH 35/51] command line sheets API key support added, dir restructured, moved to v0.0.4 --- google_objects/__init__.py | 79 ------------------------- google_objects/auth.py | 3 +- bin/sheets-cli => google_objects/cli.py | 20 ++++--- google_objects/core.py | 79 +++++++++++++++++++++++++ google_objects/drive.py | 3 +- google_objects/sheets.py | 9 ++- google_objects/slides.py | 3 +- setup.py | 52 +++++++++++----- 8 files changed, 140 insertions(+), 108 deletions(-) rename bin/sheets-cli => google_objects/cli.py (69%) mode change 100755 => 100644 create mode 100644 google_objects/core.py diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 9fc4901..343b2a4 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -1,84 +1,5 @@ # -*- coding: utf-8 -*- -import os -import logging - -from apiclient import discovery - -from google_objects.auth import service_account_creds - -# sets default logging handler to avoid "No handler found" warnings. -try: - # for Python 2.7+ - from logging import NullHandler -except ImportError: - class NullHandler(logging.Handler): - def emit(self, record): - pass - -logging.getLogger(__name__).addHandler(NullHandler()) - - -class GoogleClient(object): - - """Google API Base object that saves credentials - and build Resource objects. Responsible for permissions - as well. - - """ - - def __init__(self, resource=None): - self.resource = resource - - @classmethod - def from_api_key(cls, service, version, api_key): - """Authorizes a client from an Api Key.""" - - if not api_key: - raise ValueError('Please provide an API Key.') - - resource = discovery.build(service, version, developerKey=api_key) - return cls(resource) - - @classmethod - def from_service_account(cls, service, version, - creds_path=None, user=None, scope=[]): - """Authorizes a client from an Service Account Credential File.""" - - creds_path = creds_path or os.getenv('GOOGLE_SERVICE_ACCOUNT') - if not creds_path: - err = 'Please provide an a path to your service credentals.' - raise ValueError(err) - - http_client = service_account_creds(creds_path, user, scope=scope) - resource = discovery.build(service, version, http=http_client) - return cls(resource) - - -class GoogleObject(object): - - """Sets private properties on subclasses, - corresponding one-to-one with Google API Resource - values. - """ - - def __init__(self, **kwargs): - """Set Resource corresponding **kwargs - to private attributes. - """ - self.data = kwargs - - @classmethod - def from_existing(cls, data, *args): - return cls(*args, **data) - - def serialize(self): - """convert __dict__ keys to camel case, get - intersection of this and _properties - """ - return self.data - - from .drive import DriveClient from .sheets import SheetsClient from .slides import SlidesClient diff --git a/google_objects/auth.py b/google_objects/auth.py index 326ea52..ac343c7 100644 --- a/google_objects/auth.py +++ b/google_objects/auth.py @@ -5,7 +5,8 @@ _SCOPES = { 'drive', - 'spreadsheets' + 'spreadsheets', + 'slides' } diff --git a/bin/sheets-cli b/google_objects/cli.py old mode 100755 new mode 100644 similarity index 69% rename from bin/sheets-cli rename to google_objects/cli.py index c95abba..61e355e --- a/bin/sheets-cli +++ b/google_objects/cli.py @@ -5,18 +5,19 @@ import fire -from google_objects import SheetsClient +from google_objects.sheets import SheetsClient log = logging.getLogger(__name__) -class SheetFetcher(object): +class SheetsCLI(object): """Command line tool for fetching tabular data and redirecting it to STDOUT.""" def __init__(self, spreadsheet=None, key=None): """Authenticate the Google API Client and loads the Specified Spreadsheet""" + if not spreadsheet: raise ValueError("Spreadsheet argument required.") @@ -26,8 +27,11 @@ def __init__(self, spreadsheet=None, key=None): if key: self.client = SheetsClient.from_api_key(key) else: - self.client = SheetsClient.from_service_account() - self.spreadsheet = self.client.get_spreadsheet(spreadsheet) + err_msg = "Valid API Key required, as argument or env variable set to GOOGLE_SHEETS_API_KEY." + raise ValueError(err_msg) + # self.client = SheetsClient.from_service_account() + + self.spreadsheet = self.client.get_spreadsheet(spreadsheet) def get(self, sheet='Sheet1'): """Return a Google Sheet as a list of dictionaries in the 'records' attribute @@ -36,10 +40,8 @@ def get(self, sheet='Sheet1'): sheet = self.spreadsheet.get_sheet_by_name(sheet) dataframe = sheet.frame() - records = dataframe.to - print(dataframe.to_json(orient='records')) - -if __name__ == "__main__": - fire.Fire(SheetFetcher) + +def main(): + fire.Fire(SheetsCLI) diff --git a/google_objects/core.py b/google_objects/core.py new file mode 100644 index 0000000..13144ac --- /dev/null +++ b/google_objects/core.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- + +import os +import logging + +from apiclient import discovery + +from google_objects.auth import service_account_creds + +# sets default logging handler to avoid "No handler found" warnings. +try: + # for Python 2.7+ + from logging import NullHandler +except ImportError: + class NullHandler(logging.Handler): + def emit(self, record): + pass + +logging.getLogger(__name__).addHandler(NullHandler()) + + +class GoogleClient(object): + + """Google API Base object that saves credentials + and build Resource objects. Responsible for permissions + as well. + + """ + + def __init__(self, resource=None): + self.resource = resource + + @classmethod + def from_api_key(cls, service, version, api_key): + """Authorizes a client from an Api Key.""" + + if not api_key: + raise ValueError('Please provide an API Key.') + + resource = discovery.build(service, version, developerKey=api_key) + return cls(resource) + + @classmethod + def from_service_account(cls, service, version, + creds_path=None, user=None, scope=[]): + """Authorizes a client from an Service Account Credential File.""" + + creds_path = creds_path or os.getenv('GOOGLE_SERVICE_ACCOUNT') + if not creds_path: + err = 'Please provide an a path to your service credentals.' + raise ValueError(err) + + http_client = service_account_creds(creds_path, user, scope=scope) + resource = discovery.build(service, version, http=http_client) + return cls(resource) + + +class GoogleObject(object): + + """Sets private properties on subclasses, + corresponding one-to-one with Google API Resource + values. + """ + + def __init__(self, **kwargs): + """Set Resource corresponding **kwargs + to private attributes. + """ + self.data = kwargs + + @classmethod + def from_existing(cls, data, *args): + return cls(*args, **data) + + def serialize(self): + """convert __dict__ keys to camel case, get + intersection of this and _properties + """ + return self.data diff --git a/google_objects/drive.py b/google_objects/drive.py index 6e7a4bc..a013b28 100644 --- a/google_objects/drive.py +++ b/google_objects/drive.py @@ -10,7 +10,8 @@ import uuid import logging -from google_objects import GoogleClient, GoogleObject +from google_objects.core import GoogleClient +from google_objects.core import GoogleObject log = logging.getLogger(__name__) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index 07e1266..f53d64f 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -12,7 +12,8 @@ import pandas -from google_objects import GoogleClient, GoogleObject +from google_objects.core import GoogleClient +from google_objects.core import GoogleObject log = logging.getLogger(__name__) @@ -71,6 +72,10 @@ def from_service_account(cls, **kwargs): kwargs['scope'] = ['spreadsheets'] return super().from_service_account(cls.service, cls.version, **kwargs) + @classmethod + def from_api_key(cls, key, **kwargs): + return super().from_api_key(cls.service, cls.version, key) + def get_spreadsheet(self, id): """Returns a Spreadsheet Object @@ -223,7 +228,7 @@ def get_sheet_by_name(self, name): if name == sheet.title: return sheet - raise ValueError + raise ValueError('Sheet with provided name not found.') def yield_sheets(self): for sheet in self.data['sheets']: diff --git a/google_objects/slides.py b/google_objects/slides.py index 942c5f1..28e21fc 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -10,7 +10,8 @@ import logging import functools -from google_objects import GoogleClient, GoogleObject +from google_objects.core import GoogleClient +from google_objects.core import GoogleObject log = logging.getLogger(__name__) diff --git a/setup.py b/setup.py index 0c8b407..53acc93 100644 --- a/setup.py +++ b/setup.py @@ -1,30 +1,52 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import io import os import sys -from distutils.core import setup + +from setuptools import setup +from setuptools import find_packages + + +with io.open('README.md', 'rt', encoding='utf8') as f: + README = f.read() if sys.argv[-1] == 'test': os.system('python -sm unittest discover tests "*_test.py"') sys.exit(0) -version = '0.0.3' -requires = ['google-api-python-client>=1.5.3', 'pandas>=0.22.0'] -setup_requirements = ['pytest-runner>=2.0'] -test_requirements = ['pytest>=2.8.0'] + +VERSION = '0.0.4' +REQUIRES = ['google-api-python-client>=1.5.3', 'pandas>=0.22.0', 'fire>=0.1.3'] setup( name='google_objects', - packages=['google_objects'], - version=version, - description='A simple OO wrapper around google\'s python API client', + packages=find_packages(), + version=VERSION, + description="A simple OO wrapper around google's python API client", + long_description=README, + long_description_content_type='text/markdown', author='Connor Sullivan', author_email='sully4792@gmail.com', - install_requires=requires, - setup_requires=setup_requirements, - tests_require=test_requirements, - scripts=['bin/sheets-cli'], + install_requires=REQUIRES, url='https://github.com/condad/google-objects', - download_url='https://github.com/condad/google-objects/tarball/' + version, - keywords=['google', 'api', 'wrapper'], - classifiers=[], + download_url='https://github.com/condad/google-objects/tarball/' + VERSION, + keywords=['google api', 'google sheets', 'google drive', 'google slides'], + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + entry_points={ + 'console_scripts': [ + 'sheets-cli = google_objects.cli:main', + ], + }, ) From d70bf7a7891002c99456a4ab8914ea74038bad06 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 24 Mar 2018 20:51:51 -0400 Subject: [PATCH 36/51] removed auth class method from child clients --- google_objects/cli.py | 35 +++++++++++++++++++---------------- google_objects/core.py | 30 +++++++++++++++++++----------- google_objects/drive.py | 9 +++------ google_objects/sheets.py | 36 ++++++++++++++++++------------------ google_objects/slides.py | 9 +++------ tests/sheets_test.py | 2 +- 6 files changed, 63 insertions(+), 58 deletions(-) diff --git a/google_objects/cli.py b/google_objects/cli.py index 61e355e..cc5a2a1 100644 --- a/google_objects/cli.py +++ b/google_objects/cli.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys import logging import fire @@ -15,32 +16,34 @@ class SheetsCLI(object): """Command line tool for fetching tabular data and redirecting it to STDOUT.""" - def __init__(self, spreadsheet=None, key=None): + def __init__(self, spreadsheet, key=None, service_account=False): """Authenticate the Google API Client and loads the Specified Spreadsheet""" - if not spreadsheet: - raise ValueError("Spreadsheet argument required.") + try: + if service_account: + self.client = SheetsClient.from_service_account() + else: + self.client = SheetsClient.from_api_key(key) - if not key: - key = os.getenv('GOOGLE_SHEETS_API_KEY') + self.spreadsheet = self.client.get_spreadsheet(spreadsheet) - if key: - self.client = SheetsClient.from_api_key(key) - else: - err_msg = "Valid API Key required, as argument or env variable set to GOOGLE_SHEETS_API_KEY." - raise ValueError(err_msg) - # self.client = SheetsClient.from_service_account() - - self.spreadsheet = self.client.get_spreadsheet(spreadsheet) + except ValueError as exception: + sys.stderr.write(str(exception)) + sys.exit(1) def get(self, sheet='Sheet1'): """Return a Google Sheet as a list of dictionaries in the 'records' attribute of the outputted json""" - sheet = self.spreadsheet.get_sheet_by_name(sheet) - dataframe = sheet.frame() + try: + sheet = self.spreadsheet.get_sheet_by_name(sheet) + dataframe = sheet.dataframe() + + except ValueError as exception: + sys.stderr.write(str(exception)) + sys.exit(2) - print(dataframe.to_json(orient='records')) + sys.stdout.write(dataframe.to_json(orient='records')) def main(): diff --git a/google_objects/core.py b/google_objects/core.py index 13144ac..af0f4fe 100644 --- a/google_objects/core.py +++ b/google_objects/core.py @@ -18,6 +18,9 @@ def emit(self, record): logging.getLogger(__name__).addHandler(NullHandler()) +ENV_API_KEY = 'GOOGLE_API_KEY' +ENV_SERVICE_ACCOUNT = 'GOOGLE_SERVICE_ACCOUNT_PATH' + class GoogleClient(object): @@ -27,31 +30,36 @@ class GoogleClient(object): """ + service = None + version = None + scope = {} + def __init__(self, resource=None): self.resource = resource @classmethod - def from_api_key(cls, service, version, api_key): + def from_api_key(cls, api_key=None): """Authorizes a client from an Api Key.""" + api_key = api_key or os.getenv(ENV_API_KEY) + if not api_key: - raise ValueError('Please provide an API Key.') + raise ValueError('API Key not provided.') - resource = discovery.build(service, version, developerKey=api_key) + resource = discovery.build(cls.service, cls.version, developerKey=api_key) return cls(resource) @classmethod - def from_service_account(cls, service, version, - creds_path=None, user=None, scope=[]): + def from_service_account(cls, creds_path=None, user=None): """Authorizes a client from an Service Account Credential File.""" - creds_path = creds_path or os.getenv('GOOGLE_SERVICE_ACCOUNT') + creds_path = creds_path or os.getenv(ENV_SERVICE_ACCOUNT) + if not creds_path: - err = 'Please provide an a path to your service credentals.' - raise ValueError(err) + raise ValueError('Service Account path not provided.') - http_client = service_account_creds(creds_path, user, scope=scope) - resource = discovery.build(service, version, http=http_client) + http_client = service_account_creds(creds_path, user, scope=cls.scope) + resource = discovery.build(cls.service, cls.version, http=http_client) return cls(resource) @@ -62,7 +70,7 @@ class GoogleObject(object): values. """ - def __init__(self, **kwargs): + def __init__(self, *args, **kwargs): """Set Resource corresponding **kwargs to private attributes. """ diff --git a/google_objects/drive.py b/google_objects/drive.py index a013b28..f979cd4 100644 --- a/google_objects/drive.py +++ b/google_objects/drive.py @@ -24,12 +24,9 @@ class DriveClient(GoogleClient): callback: receving webook URL. """ - @classmethod - def from_service_account(cls, **kwargs): - kwargs['scope'] = ['drive'] - kwargs['service'] = 'drive' - kwargs['version'] = 'v3' - return super().from_service_account(**kwargs) + service = 'drive' + version = 'v3' + scope = {'drive'} def get_about(self, fields=['user']): data = self.resource.about().get( diff --git a/google_objects/sheets.py b/google_objects/sheets.py index f53d64f..ec68ff8 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -7,6 +7,7 @@ """ +import os import logging from datetime import datetime @@ -17,6 +18,9 @@ log = logging.getLogger(__name__) +ENV_VARIABLE_NAME = 'GOOGLE_API_KEY' +ENV_SERVICE_ACCOUNT = 'GOOGLE_API_KEY' + def _value_to_cell(val): if str(val).isdigit(): @@ -66,15 +70,7 @@ class SheetsClient(GoogleClient): service = 'sheets' version = 'v4' - - @classmethod - def from_service_account(cls, **kwargs): - kwargs['scope'] = ['spreadsheets'] - return super().from_service_account(cls.service, cls.version, **kwargs) - - @classmethod - def from_api_key(cls, key, **kwargs): - return super().from_api_key(cls.service, cls.version, key) + scope = {'spreadsheets',} def get_spreadsheet(self, id): """Returns a Spreadsheet Object @@ -174,7 +170,7 @@ def append_values(self, spreadsheet_id, rng, values): body={'values': values} ).execute() - return Block.from_existing(data, client=self) + return Block.from_existing(data, self) def push_updates(self, spreadsheet_id, updates): spreadsheets = self.resource.spreadsheets() @@ -404,8 +400,18 @@ def values(self, start=None, end=None): return block - def frame(self): - return self.values().as_df() + def dataframe(self, join_column_labels=False, header_row=0): + values = self.values().rows() + header, data = values[header_row], values[header_row +1:] + + df = pandas.DataFrame(data) + + if join_column_labels: + df.columns = ['_'.join(lb.lower().split()) for lb in header] + else: + df.columns = header + + return df class Block(GoogleObject): @@ -452,12 +458,6 @@ def yield_rows(self): def rows(self): return [row for row in self.yield_rows()] - def as_df(self, header=True): - df = pandas.DataFrame(self.rows()) - if header: - df = df.rename(columns=df.iloc[0]) - return df.iloc[1:] - @property def values(self): return self.data['values'] diff --git a/google_objects/slides.py b/google_objects/slides.py index 28e21fc..a02f892 100644 --- a/google_objects/slides.py +++ b/google_objects/slides.py @@ -28,12 +28,9 @@ class SlidesClient(GoogleClient): are handled by its object. """ - @classmethod - def from_service_account(cls, **kwargs): - kwargs['scope'] = ['slides'] - kwargs['service'] = 'slides' - kwargs['version'] = 'v1' - return super().from_service_account(**kwargs) + service = 'slides' + version = 'v1' + scope = {'slides'} def get_presentation(self, presentation_id): """Returns a Presentation Object diff --git a/tests/sheets_test.py b/tests/sheets_test.py index faafd7f..d6f1f72 100644 --- a/tests/sheets_test.py +++ b/tests/sheets_test.py @@ -58,5 +58,5 @@ def test_values(self): def test_frame(self): spreadsheet = self.client.get_spreadsheet('abc123') sheets = spreadsheet.sheets() - values = sheets[0].frame() + values = sheets[0].dataframe() self.assertIsInstance(values, pandas.DataFrame) From 2e98d11a4754cb5692fc3ac089126520cdc4d566 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 26 Mar 2018 14:33:36 -0400 Subject: [PATCH 37/51] added NullHandler to __init__ logger --- google_objects/__init__.py | 12 ++++++++++++ google_objects/core.py | 12 ++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/google_objects/__init__.py b/google_objects/__init__.py index 343b2a4..e962ed6 100644 --- a/google_objects/__init__.py +++ b/google_objects/__init__.py @@ -1,4 +1,16 @@ # -*- coding: utf-8 -*- +import logging + +# sets default logging handler to avoid "No handler found" warnings. +try: + # for Python 2.7+ + from logging import NullHandler +except ImportError: + class NullHandler(logging.Handler): + def emit(self, record): + pass + +logging.getLogger(__name__).addHandler(NullHandler()) from .drive import DriveClient from .sheets import SheetsClient diff --git a/google_objects/core.py b/google_objects/core.py index af0f4fe..7b25532 100644 --- a/google_objects/core.py +++ b/google_objects/core.py @@ -7,16 +7,8 @@ from google_objects.auth import service_account_creds -# sets default logging handler to avoid "No handler found" warnings. -try: - # for Python 2.7+ - from logging import NullHandler -except ImportError: - class NullHandler(logging.Handler): - def emit(self, record): - pass - -logging.getLogger(__name__).addHandler(NullHandler()) +log = logging.getLogger(__name__) + ENV_API_KEY = 'GOOGLE_API_KEY' ENV_SERVICE_ACCOUNT = 'GOOGLE_SERVICE_ACCOUNT_PATH' From 917558672eb6f34a04600946a5843be8506c5c14 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 26 Mar 2018 20:05:15 -0400 Subject: [PATCH 38/51] publish setup arg added --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 53acc93..f336ca3 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,10 @@ os.system('python -sm unittest discover tests "*_test.py"') sys.exit(0) +if sys.argv[-1] == 'publish': + os.system('python setup.py sdist') + os.system('twine upload dist/*') + sys.exit(0) VERSION = '0.0.4' REQUIRES = ['google-api-python-client>=1.5.3', 'pandas>=0.22.0', 'fire>=0.1.3'] From b76b2c25352017e994bd8db1b2d570b96beff353 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 10 Apr 2018 11:37:45 -0400 Subject: [PATCH 39/51] minor formatting fixes --- google_objects/sheets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google_objects/sheets.py b/google_objects/sheets.py index ec68ff8..a28c26f 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -19,7 +19,7 @@ log = logging.getLogger(__name__) ENV_VARIABLE_NAME = 'GOOGLE_API_KEY' -ENV_SERVICE_ACCOUNT = 'GOOGLE_API_KEY' +ENV_SERVICE_ACCOUNT = 'GOOGLE_SERVICE_ACCOUNT' def _value_to_cell(val): @@ -473,7 +473,7 @@ def __setitem__(self, key, item): self.values[key] = item -def FORMAT_ROW(sheet_id, start, end, rgba): +def format_row(sheet_id, start, end, rgba): return { "repeatCell": { "range": { From eda8de4bcaf2a46676b6a0561bd78b03ae8717ad Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 7 May 2018 12:56:00 -0400 Subject: [PATCH 40/51] create spreadsheet functionality from CLI added --- google_objects/auth.py | 6 ++--- google_objects/cli.py | 48 +++++++++++++++++++++++++++++++++------- google_objects/core.py | 2 ++ google_objects/sheets.py | 8 +++++-- 4 files changed, 51 insertions(+), 13 deletions(-) diff --git a/google_objects/auth.py b/google_objects/auth.py index ac343c7..10986b9 100644 --- a/google_objects/auth.py +++ b/google_objects/auth.py @@ -22,7 +22,7 @@ def service_account_creds(creds_path, delegated_user=None, scope=None): if not creds_path: creds_path = os.getenv('GOOGLE_SERVICE_ACCOUNT_CREDENTIALS') if not delegated_user: - user = os.getenv('GOOGLE_DELEGATED_USER') + delegated_user = os.getenv('GOOGLE_DELEGATED_USER') creds_path = os.path.expanduser(creds_path) creds = ServiceAccountCredentials.from_json_keyfile_name( @@ -30,7 +30,7 @@ def service_account_creds(creds_path, delegated_user=None, scope=None): ) # create delegated if user exists - if user: - creds = creds.create_delegated(user) + if delegated_user: + creds = creds.create_delegated(delegated_user) return creds.authorize(httplib2.Http()) diff --git a/google_objects/cli.py b/google_objects/cli.py index cc5a2a1..caa160a 100644 --- a/google_objects/cli.py +++ b/google_objects/cli.py @@ -2,9 +2,11 @@ import os import sys +import json import logging import fire +import pandas as pd from google_objects.sheets import SheetsClient @@ -16,34 +18,64 @@ class SheetsCLI(object): """Command line tool for fetching tabular data and redirecting it to STDOUT.""" - def __init__(self, spreadsheet, key=None, service_account=False): + def __init__(self, key=None, service_account=False, user=None): """Authenticate the Google API Client and loads the Specified Spreadsheet""" try: if service_account: - self.client = SheetsClient.from_service_account() + self.client = SheetsClient.from_service_account(user=user) else: self.client = SheetsClient.from_api_key(key) - self.spreadsheet = self.client.get_spreadsheet(spreadsheet) - except ValueError as exception: sys.stderr.write(str(exception)) sys.exit(1) - def get(self, sheet='Sheet1'): + def get_spreadsheet(self, spreadsheet_id): """Return a Google Sheet as a list of dictionaries in the 'records' attribute of the outputted json""" try: - sheet = self.spreadsheet.get_sheet_by_name(sheet) - dataframe = sheet.dataframe() + spreadsheet = self.client.get_spreadsheet(spreadsheet_id) + output = { + 'title': spreadsheet.title, + 'id': spreadsheet.id, + 'sheets': [{'title': sheet.title, + 'records': sheet.dataframe().to_dict( + orient='records')} + for sheet in spreadsheet.sheets()] + } except ValueError as exception: sys.stderr.write(str(exception)) sys.exit(2) - sys.stdout.write(dataframe.to_json(orient='records')) + # sys.stdout.write(dataframe.to_json(orient='records')) + sys.stdout.write(json.dumps(output)) + + def create_spreadsheet(self, file_path=None): + """Create a new Google Spreadsheet. + + :file_name: JSON File name + :returns: URL of newly created Google Sheet. + + """ + if file_path: + with open(file_path, 'r') as f: + json_data = f.read() + else: + json_data = sys.stdin.read() + + input_data = json.loads(json_data) + if 'records' in input_data: + input_data = input_data['records'] + + df = pd.DataFrame(input_data) + try: + spreadsheet = self.client.create_spreadsheet_from_dataframe(df) + sys.stdout.write(spreadsheet.url) + except Exception as e: + sys.stdout.write(e) def main(): diff --git a/google_objects/core.py b/google_objects/core.py index 7b25532..a766f69 100644 --- a/google_objects/core.py +++ b/google_objects/core.py @@ -12,6 +12,7 @@ ENV_API_KEY = 'GOOGLE_API_KEY' ENV_SERVICE_ACCOUNT = 'GOOGLE_SERVICE_ACCOUNT_PATH' +ENV_DELEGATED_USER = 'GOOGLE_DELEGATED_USER' class GoogleClient(object): @@ -46,6 +47,7 @@ def from_service_account(cls, creds_path=None, user=None): """Authorizes a client from an Service Account Credential File.""" creds_path = creds_path or os.getenv(ENV_SERVICE_ACCOUNT) + user = user or os.getenv(ENV_DELEGATED_USER) if not creds_path: raise ValueError('Service Account path not provided.') diff --git a/google_objects/sheets.py b/google_objects/sheets.py index a28c26f..bce1f9e 100644 --- a/google_objects/sheets.py +++ b/google_objects/sheets.py @@ -100,7 +100,7 @@ def create_spreadsheet_from_dataframes(self, *frames, **options): """Creates a new Google Spreadsheet with a provided pandas.DataFrame objects and options. - :frame: pandas.DataFrame + :frame: :**options: Google Spreadsheet initialization options :returns: Spreadsheet @@ -201,6 +201,10 @@ def id(self): def title(self): return self.data['properties']['title'] + @property + def url(self): + return 'https://docs.google.com/spreadsheets/d/{}'.format(self.id) + @title.setter def title(self, value): self.data['properties']['title'] = value @@ -230,7 +234,7 @@ def yield_sheets(self): for sheet in self.data['sheets']: yield Sheet.from_existing(sheet, self) - def yield_values(self, arg1): + def yield_values(self): for sheet in self.yield_sheets(): yield sheet.values() From 2b10728af02e67add4ade184f1fc09d8d1d3ee2e Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Tue, 8 May 2018 23:29:00 -0400 Subject: [PATCH 41/51] removed service credentials CLI arg --- google_objects/cli.py | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/google_objects/cli.py b/google_objects/cli.py index caa160a..5e80e7a 100644 --- a/google_objects/cli.py +++ b/google_objects/cli.py @@ -18,25 +18,13 @@ class SheetsCLI(object): """Command line tool for fetching tabular data and redirecting it to STDOUT.""" - def __init__(self, key=None, service_account=False, user=None): - """Authenticate the Google API Client and loads the Specified Spreadsheet""" - - try: - if service_account: - self.client = SheetsClient.from_service_account(user=user) - else: - self.client = SheetsClient.from_api_key(key) - - except ValueError as exception: - sys.stderr.write(str(exception)) - sys.exit(1) - - def get_spreadsheet(self, spreadsheet_id): + def get_spreadsheet(self, spreadsheet_id, key=None): """Return a Google Sheet as a list of dictionaries in the 'records' attribute of the outputted json""" try: - spreadsheet = self.client.get_spreadsheet(spreadsheet_id) + client = SheetsClient.from_api_key(key) + spreadsheet = client.get_spreadsheet(spreadsheet_id) output = { 'title': spreadsheet.title, 'id': spreadsheet.id, @@ -48,18 +36,20 @@ def get_spreadsheet(self, spreadsheet_id): except ValueError as exception: sys.stderr.write(str(exception)) - sys.exit(2) + sys.exit(1) # sys.stdout.write(dataframe.to_json(orient='records')) sys.stdout.write(json.dumps(output)) - def create_spreadsheet(self, file_path=None): - """Create a new Google Spreadsheet. + def create_spreadsheet(self, file_path=None, user=None): + """Create a new Google Spreadsheet. :file_name: JSON File name :returns: URL of newly created Google Sheet. """ + client = SheetsClient.from_service_account(user=user) + if file_path: with open(file_path, 'r') as f: json_data = f.read() @@ -72,10 +62,11 @@ def create_spreadsheet(self, file_path=None): df = pd.DataFrame(input_data) try: - spreadsheet = self.client.create_spreadsheet_from_dataframe(df) + spreadsheet = client.create_spreadsheet_from_dataframe(df) sys.stdout.write(spreadsheet.url) except Exception as e: sys.stdout.write(e) + sys.exit(1) def main(): From 18488741a0e5b6d402f24c0f4c6b515c727cc734 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 9 May 2018 14:42:06 -0400 Subject: [PATCH 42/51] version updated to 0.0.5 --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index f336ca3..df8ff1d 100644 --- a/setup.py +++ b/setup.py @@ -21,21 +21,21 @@ os.system('twine upload dist/*') sys.exit(0) -VERSION = '0.0.4' +VERSION = '0.0.5' REQUIRES = ['google-api-python-client>=1.5.3', 'pandas>=0.22.0', 'fire>=0.1.3'] - +GITHUB_URL = 'https://github.com/condad/google-objects' setup( name='google_objects', packages=find_packages(), version=VERSION, - description="A simple OO wrapper around google's python API client", + description="A simple OO wrapper around Google's python API client", long_description=README, long_description_content_type='text/markdown', author='Connor Sullivan', author_email='sully4792@gmail.com', install_requires=REQUIRES, - url='https://github.com/condad/google-objects', + url=GITHUB_URL, download_url='https://github.com/condad/google-objects/tarball/' + VERSION, keywords=['google api', 'google sheets', 'google drive', 'google slides'], classifiers=[ From 4785f5653f2ea1476fd575021d5361ac60d830f5 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Wed, 9 May 2018 14:53:56 -0400 Subject: [PATCH 43/51] special characters removed from markdown --- README.md | 24 ++++++++++++------------ setup.py | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index cf85b2c..fdcbc18 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Google Objects Thin, pythonic OO wrapper around Google's "google-api-python-client" library. -Currently supports Python 3+ :snake::snake::snake: +Currently supports Python 3+ ## Installation ```bash @@ -12,7 +12,7 @@ Requires a valid Google API Credentials object from Google's excellent oauth2lib ### Google Drive v3 -- [x] Retrieve drive 'About' information: +- Retrieve drive 'About' information: ```python from google_objects import DriveClient @@ -29,7 +29,7 @@ print(about.photo) # ... ``` -- [x] List files in drive by type: +- List files in drive by type: ```python files_by_type = { @@ -49,7 +49,7 @@ for file in files_by_type['spreadsheets']: # ... ``` -- [x] Copy and share file: +- Copy and share file: ```python file = gdrive.get_file('FILE_ID') @@ -64,7 +64,7 @@ print(permission.role, permission.type, permission.email) ### Google Slides v1 -- [x] Retrieve presentation and loop through elements: +- Retrieve presentation and loop through elements: ```python from google_objects import SlidesClient @@ -81,7 +81,7 @@ for slide in presentation: # Shape, Table, etc ``` -- [x] Check text in shape: +- Check text in shape: ```python shape = presentation.get_element_by_id('SHAPE_ID') @@ -89,7 +89,7 @@ for segment in shape.text: print(segment.text) ``` -- [x] Batch update every cell in table: +- Batch update every cell in table: ```python # use with to perform batch updates in block @@ -104,7 +104,7 @@ with presentation as pres: ### Google Sheets v4 -- [x] Retrieve spreadsheet and loop through sheets: +- Retrieve spreadsheet and loop through sheets: ```python from google_objects import SheetsClient @@ -116,14 +116,14 @@ for sheet in spreadsheet: print(sheet.id, sheet.title) ``` -- [x] Get sheet by name and return its full block of values: +- Get sheet by name and return its full block of values: ```python sheet = spreadsheet['Sheet 1'] values = sheet.values() ``` -- [x] Get named range value block: +- Get named range value block: ```python named_ranges = spreadsheet.named_ranges('SHEET_NAME!A:C') @@ -131,7 +131,7 @@ for rng in named_range: values = named_range.get_block() ``` -- [x] Update values block: +- Update values block: ```python values = spreadsheet.get_range('SHEET_NAME!A:C') @@ -146,7 +146,7 @@ values[2:5] = [[1,2,4], [4, 5, 6], [6, 7, 8]] values.update() ``` -- [x] Append to values block: +- Append to values block: ```python to_append = [[1, 2, 3], [4, 5, 6]] diff --git a/setup.py b/setup.py index df8ff1d..4e094dc 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ os.system('twine upload dist/*') sys.exit(0) -VERSION = '0.0.5' +VERSION = '0.0.7' REQUIRES = ['google-api-python-client>=1.5.3', 'pandas>=0.22.0', 'fire>=0.1.3'] GITHUB_URL = 'https://github.com/condad/google-objects' From aad53aa7eaedcdc3429b7a14030ae211fdffb00f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Feb 2021 20:16:45 +0000 Subject: [PATCH 44/51] Bump httplib2 from 0.9.2 to 0.19.0 Bumps [httplib2](https://github.com/httplib2/httplib2) from 0.9.2 to 0.19.0. - [Release notes](https://github.com/httplib2/httplib2/releases) - [Changelog](https://github.com/httplib2/httplib2/blob/master/CHANGELOG) - [Commits](https://github.com/httplib2/httplib2/compare/0.9.2...v0.19.0) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 339b353..635ced6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ google-api-python-client==1.5.3 -httplib2==0.9.2 +httplib2==0.19.0 oauth2client==3.0.0 py==1.4.31 pyasn1==0.1.9 From 919a29a8a540292a94786357b5b49a4f43273d78 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Mar 2021 18:29:11 +0000 Subject: [PATCH 45/51] Bump rsa from 3.4.2 to 4.1 Bumps [rsa](https://github.com/sybrenstuvel/python-rsa) from 3.4.2 to 4.1. - [Release notes](https://github.com/sybrenstuvel/python-rsa/releases) - [Changelog](https://github.com/sybrenstuvel/python-rsa/blob/main/CHANGELOG.md) - [Commits](https://github.com/sybrenstuvel/python-rsa/compare/version-3.4.2...version-4.1) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 339b353..073b9bf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ pyasn1==0.1.9 pyasn1-modules==0.0.8 pytest==3.0.2 pytest-runner==2.9 -rsa==3.4.2 +rsa==4.1 simplejson==3.8.2 six==1.10.0 uritemplate==0.6 From e1410d33b18a93a89288b32834a2fae3be0e6a2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Apr 2021 17:07:35 +0000 Subject: [PATCH 46/51] Bump py from 1.4.31 to 1.10.0 Bumps [py](https://github.com/pytest-dev/py) from 1.4.31 to 1.10.0. - [Release notes](https://github.com/pytest-dev/py/releases) - [Changelog](https://github.com/pytest-dev/py/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/py/compare/1.4.31...1.10.0) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ac4fa50..b5af172 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ google-api-python-client==1.5.3 httplib2==0.19.0 oauth2client==3.0.0 -py==1.4.31 +py==1.10.0 pyasn1==0.1.9 pyasn1-modules==0.0.8 pytest==3.0.2 From 05f5e59cd0efcaaf4e92a752528d06f9ee7a6e40 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 24 Apr 2021 09:37:21 +0100 Subject: [PATCH 47/51] Update requirements.txt Notably now includes pandas. This obviously increased package size dramatically but without it the sheets integration loses its luster. --- requirements.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b5af172..0b0a4d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,22 @@ +attrs==20.3.0 google-api-python-client==1.5.3 httplib2==0.19.0 +iniconfig==1.1.1 +numpy==1.20.2 oauth2client==3.0.0 +packaging==20.9 +pandas==1.2.4 +pluggy==0.13.1 py==1.10.0 pyasn1==0.1.9 pyasn1-modules==0.0.8 -pytest==3.0.2 +pyparsing==2.4.7 +pytest==6.2.3 pytest-runner==2.9 +python-dateutil==2.8.1 +pytz==2021.1 rsa==4.1 simplejson==3.8.2 six==1.10.0 +toml==0.10.2 uritemplate==0.6 From 5ceb6b215ecbc602de316f56711e782d1056ae7a Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 24 Apr 2021 09:45:37 +0100 Subject: [PATCH 48/51] Add GH action to run python tests --- .github/workflows/test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..3f8f42f --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,25 @@ +name: Run test suite + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test with pytest + run: | + pytest \ No newline at end of file From 4172670e3dbafd8d1f4908149bd95d3216226493 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 25 Oct 2021 08:25:38 +0100 Subject: [PATCH 49/51] Use '==' for value comparisons Silences syntax warnings. --- google_objects/drive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google_objects/drive.py b/google_objects/drive.py index f979cd4..6a62888 100644 --- a/google_objects/drive.py +++ b/google_objects/drive.py @@ -347,5 +347,5 @@ def email(self): def email(self, value): # TODO: # add update call if _id is present - if len(value.split('@')) is 2: + if len(value.split('@')) == 2: self.data['emailAddress'] = value From bf86dc86a6cf97071ff67bdd1cb7ee7ade483fac Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 25 Oct 2021 08:52:34 +0100 Subject: [PATCH 50/51] Bump dependencies In particular we've moved to 'google-api-python-client' v2.x.x, which will probably break some functionality for the time being. --- requirements.txt | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0b0a4d1..7d784a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,22 +1,33 @@ attrs==20.3.0 -google-api-python-client==1.5.3 +cachetools==4.2.4 +certifi==2021.10.8 +charset-normalizer==2.0.7 +google-api-core==2.1.1 +google-api-python-client==2.27.0 +google-auth==2.3.0 +google-auth-httplib2==0.1.0 +googleapis-common-protos==1.53.0 httplib2==0.19.0 +idna==3.3 iniconfig==1.1.1 numpy==1.20.2 oauth2client==3.0.0 packaging==20.9 pandas==1.2.4 pluggy==0.13.1 +protobuf==3.19.0 py==1.10.0 -pyasn1==0.1.9 -pyasn1-modules==0.0.8 +pyasn1==0.4.8 +pyasn1-modules==0.2.8 pyparsing==2.4.7 pytest==6.2.3 pytest-runner==2.9 python-dateutil==2.8.1 pytz==2021.1 +requests==2.26.0 rsa==4.1 simplejson==3.8.2 six==1.10.0 toml==0.10.2 -uritemplate==0.6 +uritemplate==4.1.1 +urllib3==1.26.7 From aaba5e3bd87a14644f2603088a48012528246dc2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 07:55:16 +0000 Subject: [PATCH 51/51] Bump rsa from 4.1 to 4.7 Bumps [rsa](https://github.com/sybrenstuvel/python-rsa) from 4.1 to 4.7. - [Release notes](https://github.com/sybrenstuvel/python-rsa/releases) - [Changelog](https://github.com/sybrenstuvel/python-rsa/blob/main/CHANGELOG.md) - [Commits](https://github.com/sybrenstuvel/python-rsa/compare/version-4.1...version-4.7) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7d784a9..aeb0194 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,7 +25,7 @@ pytest-runner==2.9 python-dateutil==2.8.1 pytz==2021.1 requests==2.26.0 -rsa==4.1 +rsa==4.7 simplejson==3.8.2 six==1.10.0 toml==0.10.2