Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: third_party/gsutil/20110627/boto/docs/source/vpc_tut.rst

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/20110627/boto/docs/source/sqs_tut.rst ('k') | third_party/gsutil/20110627/boto/pylintrc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/20110627/boto/docs/source/vpc_tut.rst
diff --git a/third_party/gsutil/20110627/boto/docs/source/vpc_tut.rst b/third_party/gsutil/20110627/boto/docs/source/vpc_tut.rst
deleted file mode 100644
index 0040866f89d08df1c83e542519e28e6ad46fef6c..0000000000000000000000000000000000000000
--- a/third_party/gsutil/20110627/boto/docs/source/vpc_tut.rst
+++ /dev/null
@@ -1,88 +0,0 @@
-.. _vpc_tut:
-
-=======================================
-An Introduction to boto's VPC interface
-=======================================
-
-This tutorial is based on the examples in the Amazon Virtual Private
-Cloud Getting Started Guide (http://docs.amazonwebservices.com/AmazonVPC/latest/GettingStartedGuide/).
-In each example, it tries to show the boto request that correspond to
-the AWS command line tools.
-
-Creating a VPC connection
--------------------------
-First, we need to create a new VPC connection:
-
->>> from boto.vpc import VPCConnection
->>> c = VPCConnection()
-
-To create a VPC
----------------
-Now that we have a VPC connection, we can create our first VPC.
-
->>> vpc = c.create_vpc('10.0.0.0/24')
->>> vpc
-VPC:vpc-6b1fe402
->>> vpc.id
-u'vpc-6b1fe402'
->>> vpc.state
-u'pending'
->>> vpc.cidr_block
-u'10.0.0.0/24'
->>> vpc.dhcp_options_id
-u'default'
->>>
-
-To create a subnet
-------------------
-The next step is to create a subnet to associate with your VPC.
-
->>> subnet = c.create_subnet(vpc.id, '10.0.0.0/25')
->>> subnet.id
-u'subnet-6a1fe403'
->>> subnet.state
-u'pending'
->>> subnet.cidr_block
-u'10.0.0.0/25'
->>> subnet.available_ip_address_count
-123
->>> subnet.availability_zone
-u'us-east-1b'
->>>
-
-To create a customer gateway
-----------------------------
-Next, we create a customer gateway.
-
->>> cg = c.create_customer_gateway('ipsec.1', '12.1.2.3', 65534)
->>> cg.id
-u'cgw-b6a247df'
->>> cg.type
-u'ipsec.1'
->>> cg.state
-u'available'
->>> cg.ip_address
-u'12.1.2.3'
->>> cg.bgp_asn
-u'65534'
->>>
-
-To create a VPN gateway
------------------------
-
->>> vg = c.create_vpn_gateway('ipsec.1')
->>> vg.id
-u'vgw-44ad482d'
->>> vg.type
-u'ipsec.1'
->>> vg.state
-u'pending'
->>> vg.availability_zone
-u'us-east-1b'
->>>
-
-Attaching a VPN Gateway to a VPC
---------------------------------
-
->>> vg.attach(vpc.id)
->>>
« no previous file with comments | « third_party/gsutil/20110627/boto/docs/source/sqs_tut.rst ('k') | third_party/gsutil/20110627/boto/pylintrc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698