34
Using Google’s Cloud – for Developers Part 5 of 6 Programming the Google Cloud with Java APIs Lynn Langit

Using Google's Cloud - for Developers- part five

Embed Size (px)

DESCRIPTION

Part 5 of 6 - YouTube screencast series - 'Intro to the Google Cloud for Developers' - programming the Cloud APIs with Java

Citation preview

Page 1: Using Google's Cloud - for Developers- part five

Using Google’s Cloud – for Developers

Part 5 of 6 Programming the Google Cloud with Java

APIs

Lynn Langit

Page 2: Using Google's Cloud - for Developers- part five

About Lynn Langit

Practicing Architect

• Cloud Deployments• Azure• AWS• Google• Rackspac

e

Google

• Google Cloud Developer Expert

AWS & Others

• AWS Insider• MongoDB

Master• Cloudera

certified trainer

Microsoft

• FTE for 4 years

• SQL Server MVP

Page 3: Using Google's Cloud - for Developers- part five

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

Page 4: Using Google's Cloud - for Developers- part five

Taking a look at Google Cloud APIsProgramming with Java

Part Five

Page 5: Using Google's Cloud - for Developers- part five

Keeping Track – List of APIs

Page 6: Using Google's Cloud - for Developers- part five

Some of the GCE OAuth Playground APIs

Page 7: Using Google's Cloud - for Developers- part five

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

Page 8: Using Google's Cloud - for Developers- part five

Trying out the OAuth Playground

DEMO

Page 9: Using Google's Cloud - for Developers- part five

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

Page 10: Using Google's Cloud - for Developers- part five

Download SDK

Page 11: Using Google's Cloud - for Developers- part five

Configure Eclipse for Google Cloud

Get Cloud SDK Get Eclipse Plug-in

Page 12: Using Google's Cloud - for Developers- part five

Start Programming

Create a new web app project Add Google APIs Write Code Run locally Deploy (ex. push to GAE)

Page 13: Using Google's Cloud - for Developers- part five

Adding the service SDK tools via Eclipse

Page 14: Using Google's Cloud - for Developers- part five

Running Locally

Page 15: Using Google's Cloud - for Developers- part five

Using the Java API with GCE

DEMO

Page 16: Using Google's Cloud - for Developers- part five

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

Page 17: Using Google's Cloud - for Developers- part five

Using the Java API with Big Query

DEMO

Page 18: Using Google's Cloud - for Developers- part five

DEMO

Creating and Testing ‘Hello Google Cloud’ on GAE in Eclipse

Page 19: Using Google's Cloud - for Developers- part five

Hello (Google) World application

Page 20: Using Google's Cloud - for Developers- part five

DEMO

Deploying to GAE and Using the Web Admin Console

Page 21: Using Google's Cloud - for Developers- part five

About Data and GAE

Page 22: Using Google's Cloud - for Developers- part five

Data Access Patterns for GAECloud Datastore

Page 23: Using Google's Cloud - for Developers- part five

Data Access Patterns for GAECloud SQL

Page 24: Using Google's Cloud - for Developers- part five

Data Access Patterns for GAECloud Storage

Page 25: Using Google's Cloud - for Developers- part five

Data Access Patterns for GAEMemcache

Page 26: Using Google's Cloud - for Developers- part five

Viewing Deployed Applications

Create up to 10 applications Click application to view detailed information

about each instance Can try out ‘push-to-deploy’

Page 27: Using Google's Cloud - for Developers- part five

Managing your application

Page 28: Using Google's Cloud - for Developers- part five

Version Control

Updating current versions Using appcfg

Page 29: Using Google's Cloud - for Developers- part five

Using Codenvy with GAE

DEMO

Page 30: Using Google's Cloud - for Developers- part five

Keep Coding – More Samples

Page 31: Using Google's Cloud - for Developers- part five
Page 32: Using Google's Cloud - for Developers- part five

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

Page 33: Using Google's Cloud - for Developers- part five

www.TeachingKidsProgramming.org• Free Courseware (Java, Small Basic or C# [on Pluralsight])• Do a Recipe Teach a Kid (Ages 10 ++)

• recipes)

Page 34: Using Google's Cloud - for Developers- part five

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