Date post: | 14-May-2015 |
Category: |
Technology |
Upload: | lynn-langit |
View: | 2,514 times |
Download: | 0 times |
Using Google’s Cloud – for Developers
Part 5 of 6 Programming the Google Cloud with Java
APIs
Lynn Langit
About Lynn Langit
Practicing Architect
• Cloud Deployments• Azure• AWS• Google• Rackspac
e
• Google Cloud Developer Expert
AWS & Others
• AWS Insider• MongoDB
Master• Cloudera
certified trainer
Microsoft
• FTE for 4 years
• SQL Server MVP
About This Series
Is a series of screencasts including demos and code samples• Designed for Java
developers• Shows how to
work with Google Cloud Services
Delivered in Six Parts• Part One – What is
the Google Cloud?• Part Two – Using
the web consoles• Part Three –
Understanding billing
• Part Four – Using command line
• Part Five – Programming APIs with Java
• Part Six – Learning More / Next steps
Taking a look at Google Cloud APIsProgramming with Java
Part Five
Keeping Track – List of APIs
Some of the GCE OAuth Playground APIs
Understand OAuth 2.0 – what are scopes?
Specific levels of service access
Available scope options vary by service type
Google Cloud Storage has
read-only write_only read-write full-control
Google Compute Engine has
compute compute.readonly
Trying out the OAuth Playground
DEMO
Prepare to Program on the Google Cloud
• GAE, GCE, etc…• Download & Install
Google Cloud SDK
• Java (Eclipse)
Google Cloud
plug-in for IDE
• GWT tools (optional)• Android tools (optional)
Other Google
Web API tools
• MySQL ClientOther Tools
Download SDK
Configure Eclipse for Google Cloud
Get Cloud SDK Get Eclipse Plug-in
Start Programming
Create a new web app project Add Google APIs Write Code Run locally Deploy (ex. push to GAE)
Adding the service SDK tools via Eclipse
Running Locally
Using the Java API with GCE
DEMO
How does Authentication work? – GCE example
• This is token-based authentication
GCE uses ONLY OAuth 2.0
• Scope means ‘level of access’
• For GCE methods scope is either • Compute with read
and write –or-• Compute with read-
only• You may also need to
scope for Google Cloud Storage• This is called
‘devstorage’
OAuth requests have a
particular scope
• Can vary scope for these accounts• Compute
Engine• Console
ServiceGCE supports
creation of service
accounts
Using the Java API with Big Query
DEMO
DEMO
Creating and Testing ‘Hello Google Cloud’ on GAE in Eclipse
Hello (Google) World application
DEMO
Deploying to GAE and Using the Web Admin Console
About Data and GAE
Data Access Patterns for GAECloud Datastore
Data Access Patterns for GAECloud SQL
Data Access Patterns for GAECloud Storage
Data Access Patterns for GAEMemcache
Viewing Deployed Applications
Create up to 10 applications Click application to view detailed information
about each instance Can try out ‘push-to-deploy’
Managing your application
Version Control
Updating current versions Using appcfg
Using Codenvy with GAE
DEMO
Keep Coding – More Samples
About This Series
Is a series of screencasts including demos and code samples• Designed for Java developers
• Shows how to work with Google Cloud Services
Delivered in Six Parts• Part One – What is the Google Cloud?
• Part Two – Using the web consoles
• Part Three – Understanding billing
• Part Four – Using command line
• Part Five – Programming APIs with Java
• Part Six – Learning More / Next steps
www.TeachingKidsProgramming.org• Free Courseware (Java, Small Basic or C# [on Pluralsight])• Do a Recipe Teach a Kid (Ages 10 ++)
• recipes)
Keep Learning
Twitter: @LynnLangit YouTube:
http://www.youtube.com/user/SoCalDevGal
Hire me To help build your BI/Big Data solution To teach your team next gen BI To learn more about using NoSQL
solutions