Permalink
Browse files

Removing Response data structures from euare classes. These are not u…

…sed and clutter things up a lot.
  • Loading branch information...
Mitch Garnaat
Mitch Garnaat committed Oct 7, 2011
1 parent 7cee090 commit 9f3923a7347f86205fd4e83c19f104e4c8c89325
Showing with 104 additions and 1,854 deletions.
  1. +3 −10 euca2ools/commands/euare/addusertogroup.py
  2. +0 −56 euca2ools/commands/euare/createaccesskey.py
  3. +0 −40 euca2ools/commands/euare/createaccount.py
  4. +0 −61 euca2ools/commands/euare/creategroup.py
  5. +2 −33 euca2ools/commands/euare/createloginprofile.py
  6. +0 −73 euca2ools/commands/euare/createsigningcertificate.py
  7. +0 −61 euca2ools/commands/euare/createuser.py
  8. +3 −10 euca2ools/commands/euare/deactivatemfadevice.py
  9. +3 −9 euca2ools/commands/euare/deleteaccesskey.py
  10. +3 −8 euca2ools/commands/euare/deleteaccount.py
  11. +3 −9 euca2ools/commands/euare/deleteaccountpolicy.py
  12. +3 −11 euca2ools/commands/euare/deletegroup.py
  13. +3 −9 euca2ools/commands/euare/deletegrouppolicy.py
  14. +3 −10 euca2ools/commands/euare/deleteloginprofile.py
  15. +3 −10 euca2ools/commands/euare/deleteservercertificate.py
  16. +3 −11 euca2ools/commands/euare/deletesigningcertificate.py
  17. +0 −10 euca2ools/commands/euare/deleteuser.py
  18. +3 −10 euca2ools/commands/euare/deleteuserpolicy.py
  19. +3 −10 euca2ools/commands/euare/enablemfadevice.py
  20. +0 −41 euca2ools/commands/euare/getaccountpolicy.py
  21. +2 −0 euca2ools/commands/euare/getgroup.py
  22. +0 −41 euca2ools/commands/euare/getgrouppolicy.py
  23. +0 −23 euca2ools/commands/euare/getldapsyncstatus.py
  24. +0 −33 euca2ools/commands/euare/getloginprofile.py
  25. +2 −99 euca2ools/commands/euare/getservercertificate.py
  26. +0 −62 euca2ools/commands/euare/getuser.py
  27. +2 −41 euca2ools/commands/euare/getuserinfo.py
  28. +0 −41 euca2ools/commands/euare/getuserpolicy.py
  29. +2 −80 euca2ools/commands/euare/listaccesskeys.py
  30. +2 −50 euca2ools/commands/euare/listaccountpolicies.py
  31. +2 −42 euca2ools/commands/euare/listaccounts.py
  32. +2 −50 euca2ools/commands/euare/listgrouppolicies.py
  33. +2 −86 euca2ools/commands/euare/listgroups.py
  34. +2 −86 euca2ools/commands/euare/listgroupsforuser.py
  35. +2 −67 euca2ools/commands/euare/listmfadevices.py
  36. +2 −96 euca2ools/commands/euare/listservercertificates.py
  37. +2 −95 euca2ools/commands/euare/listsigningcertificates.py
  38. +2 −50 euca2ools/commands/euare/listuserpolicies.py
  39. +2 −71 euca2ools/commands/euare/listusers.py
  40. +2 −8 euca2ools/commands/euare/putaccountpolicy.py
  41. +3 −9 euca2ools/commands/euare/putgrouppolicy.py
  42. +3 −9 euca2ools/commands/euare/putuserpolicy.py
  43. +3 −10 euca2ools/commands/euare/removeuserfromgroup.py
  44. +3 −9 euca2ools/commands/euare/resyncmfadevice.py
  45. +3 −9 euca2ools/commands/euare/updateaccesskey.py
  46. +3 −9 euca2ools/commands/euare/updategroup.py
  47. +3 −10 euca2ools/commands/euare/updateloginprofile.py
  48. +3 −10 euca2ools/commands/euare/updateservercertificate.py
  49. +3 −10 euca2ools/commands/euare/updatesigningcertificate.py
  50. +3 −9 euca2ools/commands/euare/updateuser.py
  51. +3 −8 euca2ools/commands/euare/updateuserinfo.py
  52. +3 −73 euca2ools/commands/euare/uploadservercertificate.py
  53. +0 −66 euca2ools/commands/euare/uploadsigningcertificate.py
@@ -61,16 +61,9 @@ class AddUserToGroup(AWSQueryRequest):
optional=True,
doc=""" [Eucalyptus extension] Use the parameter only as the system admin to act as the account admin of the specified account without changing to account admin's role. """)]
- Response = {u'type': u'object', u'name': u'AddUserToGroupResponse',
- u'properties': [{
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False,
- u'name': u'RequestId'}],
- }]}
-
-
+ def cli_formatter(self, data):
+ pass
+
def main(self, **args):
data = []
if self.cli_options and self.cli_options.user_name:
@@ -57,62 +57,6 @@ class CreateAccessKey(AWSQueryRequest):
doc=""" [Eucalyptus extension] Use the parameter only as the system admin to act as the account admin of the specified account without changing to account admin's role. """,
)]
- Response = {u'type': u'object',
- u'name': u'CreateAccessKeyResponse', u'properties': [{
- u'doc': u' Contains the result of a successful invocation \
- of the CreateAccessKey action. ',
- u'type': u'object',
- u'name': u'CreateAccessKeyResult',
- u'optional': False,
- u'properties': [{
- u'doc': u' Information about the access key. ',
- u'type': u'object',
- u'properties': [{
- u'min_length': 1,
- u'type': u'string',
- u'name': u'UserName',
- u'pattern': u'[\\w+=,.@-]*',
- u'max_length': 128,
- u'doc': u' Name of the User the key is associated with. ',
- u'optional': False,
- }, {
- u'min_length': 16,
- u'type': u'string',
- u'name': u'AccessKeyId',
- u'pattern': u'[\\w]*',
- u'max_length': 32,
- u'doc': u' The ID for this access key. ',
- u'optional': False,
- }, {
- u'doc': u' The status of the access key. Active \
- means the key is valid for API calls, while Inactive \
- means it is not. ',
- u'type': u'enum',
- u'name': u'Status',
- u'optional': False,
- u'choices': [u'Active', u'Inactive'],
- }, {
- u'doc': u' The secret key used to sign requests. ',
- u'optional': False,
- u'name': u'SecretAccessKey',
- u'type': u'string',
- }, {
- u'doc': u' The date when the access key was created. ',
- u'optional': True,
- u'name': u'CreateDate',
- u'type': u'dateTime',
- }],
- u'optional': False,
- u'name': u'AccessKey',
- }],
- }, {
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False,
- u'name': u'RequestId'}],
- }]}
-
def cli_formatter(self, data):
print data.AccessKey['AccessKeyId']
print data.AccessKey['SecretAccessKey']
@@ -51,46 +51,6 @@ class CreateAccount(AWSQueryRequest):
doc="""The name of the new account.""")
]
- Response = {u'type': u'object', u'name': u'CreateAccountResponse',
- u'properties': [{
- u'doc'
- : u' Contains the result of a successful invocation of the CreateAccount action. '
- ,
- u'type': u'object',
- u'name': u'CreateAccountResult',
- u'optional': False,
- u'properties': [{
- u'doc': u' Information about the Account. ',
- u'type': u'object',
- u'properties': [{
- u'min_length': 1,
- u'type': u'string',
- u'name': u'AccountName',
- u'pattern': u'[\\w+=,.@-]*',
- u'max_length': 128,
- u'doc': u' The name identifying the Account. ',
- u'optional': False,
- }, {
- u'min_length': 16,
- u'type': u'string',
- u'name': u'AccountId',
- u'pattern': u'[\\w]*',
- u'max_length': 32,
- u'doc'
- : u' The stable and unique string identifying the Account. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'optional': False,
- }],
- u'optional': True,
- u'name': u'Account',
- }],
- }, {
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False, u'name': u'RequestId'}],
- }]}
-
def cli_formatter(self, data):
print data.Account['AccountName'], '\t', data.Account['AccountId']
@@ -72,67 +72,6 @@ class CreateGroup(AWSQueryRequest):
optional=True,
doc=""" [Eucalyptus extension] Use the parameter only as the system admin to act as the account admin of the specified account without changing to account admin's role. """)]
- Response = {u'type': u'object', u'name': u'CreateGroupResponse',
- u'properties': [{
- u'doc'
- : u' Contains the result of a successful invocation of the CreateGroup action. '
- ,
- u'type': u'object',
- u'name': u'CreateGroupResult',
- u'optional': False,
- u'properties': [{
- u'doc': u' Information about the group. ',
- u'type': u'object',
- u'properties': [{
- u'min_length': 1,
- u'type': u'string',
- u'name': u'Path',
- u'pattern'
- : u'(\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)',
- u'max_length': 512,
- u'doc'
- : u' Path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'optional': False,
- }, {
- u'min_length': 1,
- u'type': u'string',
- u'name': u'GroupName',
- u'pattern': u'[\\w+=,.@-]*',
- u'max_length': 128,
- u'doc': u' The name that identifies the group. ',
- u'optional': False,
- }, {
- u'min_length': 16,
- u'type': u'string',
- u'name': u'GroupId',
- u'pattern': u'[\\w]*',
- u'max_length': 32,
- u'doc'
- : u' The stable and unique string identifying the group. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'optional': False,
- }, {
- u'min_length': 20,
- u'name': u'Arn',
- u'optional': False,
- u'max_length': 2048,
- u'doc'
- : u' The Amazon Resource Name (ARN) specifying the group. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'type': u'string',
- }],
- u'optional': False,
- u'name': u'Group',
- }],
- }, {
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False, u'name'
- : u'RequestId'}],
- }]}
-
def cli_formatter(self, data):
if self.cli_options.verbose:
print data.Arn
@@ -64,39 +64,8 @@ class CreateLoginProfile(AWSQueryRequest):
doc=""" [Eucalyptus extension] Use the parameter only as the system admin to act as the account admin of the specified account without changing to account admin's role. """,
)]
- Response = {u'type': u'object',
- u'name': u'CreateLoginProfileResponse',
- u'properties': [{
- u'doc'
- : u' Contains the result of a successful invocation of the CreateLoginProfile action. '
- ,
- u'type': u'object',
- u'name': u'CreateLoginProfileResult',
- u'optional': False,
- u'properties': [{
- u'doc': u' The new login profile. ',
- u'type': u'object',
- u'properties': [{
- u'min_length': 1,
- u'type': u'string',
- u'name': u'UserName',
- u'pattern': u'[\\w+=,.@-]*',
- u'max_length': 128,
- u'doc'
- : u' The name of the User, which can be used for logins. '
- ,
- u'optional': False,
- }],
- u'optional': False,
- u'name': u'LoginProfile',
- }],
- }, {
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False, u'name'
- : u'RequestId'}],
- }]}
+ def cli_formatter(self, data):
+ pass
def main(self, **args):
return self.send(**args)
@@ -57,79 +57,6 @@ class CreateSigningCertificate(AWSQueryRequest):
doc=""" [Eucalyptus extension] Use the parameter only as the system admin to act as the account admin of the specified account without changing to account admin's role. """,
)]
- Response = {u'type': u'object',
- u'name': u'CreateSigningCertificateResponse',
- u'properties': [{
- u'doc'
- : u' Contains the result of a successful invocation of the CreateSigningCertificate action. '
- ,
- u'type': u'object',
- u'name': u'CreateSigningCertificateResult',
- u'optional': False,
- u'properties': [{
- u'doc': u' Information about the certificate. ',
- u'type': u'object',
- u'properties': [{
- u'min_length': 1,
- u'type': u'string',
- u'name': u'UserName',
- u'pattern': u'[\\w+=,.@-]*',
- u'max_length': 128,
- u'doc'
- : u' Name of the User the signing certificate is associated with. '
- ,
- u'optional': False,
- }, {
- u'min_length': 24,
- u'type': u'string',
- u'name': u'CertificateId',
- u'pattern': u'[\\w]*',
- u'max_length': 128,
- u'doc': u' The ID for the signing certificate. ',
- u'optional': False,
- }, {
- u'min_length': 1,
- u'type': u'string',
- u'name': u'CertificateBody',
- u'pattern': u'[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+',
- u'max_length': 16384,
- u'doc': u' The contents of the signing certificate. ',
- u'optional': False,
- }, {
- u'min_length': 1,
- u'type': u'string',
- u'name': u'PrivateKey',
- u'pattern': u'[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+',
- u'max_length': 16384,
- u'doc': u' The contents of the private key. ',
- u'optional': True,
- }, {
- u'doc'
- : u' The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not. '
- ,
- u'type': u'enum',
- u'name': u'Status',
- u'optional': False,
- u'choices': [u'Active', u'Inactive'],
- }, {
- u'doc'
- : u' The date when the signing certificate was uploaded. '
- ,
- u'optional': True,
- u'name': u'CreateDate',
- u'type': u'dateTime',
- }],
- u'optional': False,
- u'name': u'Certificate',
- }],
- }, {
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False, u'name'
- : u'RequestId'}],
- }]}
-
def cli_formatter(self, data):
print data.Certificate['CertificateId']
print data.Certificate['CertificateBody']
@@ -87,67 +87,6 @@ class CreateUser(AWSQueryRequest):
optional=True,
doc=""" [Eucalyptus extension] Use the parameter only as the system admin to act as the account admin of the specified account without changing to account admin's role. """)]
- Response = {u'type': u'object', u'name': u'CreateUserResponse',
- u'properties': [{
- u'doc'
- : u' Contains the result of a successful invocation of the CreateUser action. '
- ,
- u'type': u'object',
- u'name': u'CreateUserResult',
- u'optional': False,
- u'properties': [{
- u'doc': u' Information about the User. ',
- u'type': u'object',
- u'properties': [{
- u'min_length': 1,
- u'type': u'string',
- u'name': u'Path',
- u'pattern'
- : u'(\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)',
- u'max_length': 512,
- u'doc'
- : u' Path to the User name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'optional': False,
- }, {
- u'min_length': 1,
- u'type': u'string',
- u'name': u'UserName',
- u'pattern': u'[\\w+=,.@-]*',
- u'max_length': 128,
- u'doc': u' The name identifying the User. ',
- u'optional': False,
- }, {
- u'min_length': 16,
- u'type': u'string',
- u'name': u'UserId',
- u'pattern': u'[\\w]*',
- u'max_length': 32,
- u'doc'
- : u' The stable and unique string identifying the User. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'optional': False,
- }, {
- u'min_length': 20,
- u'name': u'Arn',
- u'optional': False,
- u'max_length': 2048,
- u'doc'
- : u' The Amazon Resource Name (ARN) specifying the User. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management. '
- ,
- u'type': u'string',
- }],
- u'optional': True,
- u'name': u'User',
- }],
- }, {
- u'type': u'object',
- u'optional': False,
- u'name': u'ResponseMetadata',
- u'properties': [{u'type': u'string', u'optional': False, u'name'
- : u'RequestId'}],
- }]}
-
def cli_formatter(self, data):
if self.cli_options.verbose:
print data['user_data'].Arn
Oops, something went wrong.

0 comments on commit 9f3923a

Please sign in to comment.