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

Side by Side Diff: third_party/boto/boto/ec2/elb/loadbalancer.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/boto/boto/ec2/elb/attributes.py ('k') | third_party/boto/boto/ec2/image.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ 1 # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
2 # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved 2 # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
3 # 3 #
4 # Permission is hereby granted, free of charge, to any person obtaining a 4 # Permission is hereby granted, free of charge, to any person obtaining a
5 # copy of this software and associated documentation files (the 5 # copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including 6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish, dis- 7 # without limitation the rights to use, copy, modify, merge, publish, dis-
8 # tribute, sublicense, and/or sell copies of the Software, and to permit 8 # tribute, sublicense, and/or sell copies of the Software, and to permit
9 # persons to whom the Software is furnished to do so, subject to the fol- 9 # persons to whom the Software is furnished to do so, subject to the fol-
10 # lowing conditions: 10 # lowing conditions:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 def __init__(self, connection=None, name=None, endpoints=None): 75 def __init__(self, connection=None, name=None, endpoints=None):
76 """ 76 """
77 :ivar boto.ec2.elb.ELBConnection connection: The connection this load 77 :ivar boto.ec2.elb.ELBConnection connection: The connection this load
78 balancer was instance was instantiated from. 78 balancer was instance was instantiated from.
79 :ivar list listeners: A list of tuples in the form of 79 :ivar list listeners: A list of tuples in the form of
80 ``(<Inbound port>, <Outbound port>, <Protocol>)`` 80 ``(<Inbound port>, <Outbound port>, <Protocol>)``
81 :ivar boto.ec2.elb.healthcheck.HealthCheck health_check: The health 81 :ivar boto.ec2.elb.healthcheck.HealthCheck health_check: The health
82 check policy for this load balancer. 82 check policy for this load balancer.
83 :ivar boto.ec2.elb.policies.Policies policies: Cookie stickiness and 83 :ivar boto.ec2.elb.policies.Policies policies: Cookie stickiness and
84 other policies. 84 other policies.
85 :ivar str name: The name of the Load Balancer.
85 :ivar str dns_name: The external DNS name for the balancer. 86 :ivar str dns_name: The external DNS name for the balancer.
86 :ivar str created_time: A date+time string showing when the 87 :ivar str created_time: A date+time string showing when the
87 load balancer was created. 88 load balancer was created.
88 :ivar list instances: A list of :py:class:`boto.ec2.instanceinfo.Instanc eInfo` 89 :ivar list instances: A list of :py:class:`boto.ec2.instanceinfo.Instanc eInfo`
89 instances, representing the EC2 instances this load balancer is 90 instances, representing the EC2 instances this load balancer is
90 distributing requests to. 91 distributing requests to.
91 :ivar list availability_zones: The availability zones this balancer 92 :ivar list availability_zones: The availability zones this balancer
92 covers. 93 covers.
93 :ivar str canonical_hosted_zone_name: Current CNAME for the balancer. 94 :ivar str canonical_hosted_zone_name: Current CNAME for the balancer.
94 :ivar str canonical_hosted_zone_name_id: The Route 53 hosted zone 95 :ivar str canonical_hosted_zone_name_id: The Route 53 hosted zone
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 407
407 :type security_groups: string or List of strings 408 :type security_groups: string or List of strings
408 :param security_groups: The name of the security group(s) to add. 409 :param security_groups: The name of the security group(s) to add.
409 410
410 """ 411 """
411 if isinstance(security_groups, basestring): 412 if isinstance(security_groups, basestring):
412 security_groups = [security_groups] 413 security_groups = [security_groups]
413 new_sgs = self.connection.apply_security_groups_to_lb( 414 new_sgs = self.connection.apply_security_groups_to_lb(
414 self.name, security_groups) 415 self.name, security_groups)
415 self.security_groups = new_sgs 416 self.security_groups = new_sgs
OLDNEW
« no previous file with comments | « third_party/boto/boto/ec2/elb/attributes.py ('k') | third_party/boto/boto/ec2/image.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698