mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-22 01:39:58 -05:00
Addressed Review Comments
Signed-off-by: Kunal Singh<singhk@vmware.com>
This commit is contained in:
parent
17a05460e9
commit
a9c4b6808a
@ -35,14 +35,14 @@ optional_args = parser.add_argument_group(
|
|||||||
'optional arguments')
|
'optional arguments')
|
||||||
|
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--refresh-token',
|
'--refresh_token',
|
||||||
required=True,
|
required=True,
|
||||||
help='Refresh token obtained from CSP')
|
help='Refresh token obtained from CSP')
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--org-id',
|
'--org_id',
|
||||||
required=True,
|
required=True,
|
||||||
help='Orgization ID')
|
help='Orgization ID')
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--sddc-id',
|
'--sddc_id',
|
||||||
required=True,
|
required=True,
|
||||||
help='SDDC ID')
|
help='SDDC ID')
|
||||||
|
@ -39,7 +39,7 @@ class NSXPolicyL3VPN(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
required_args.add_argument('--remote-endpoint-public-ip',
|
required_args.add_argument('--remote_endpoint_public_ip',
|
||||||
required=True,
|
required=True,
|
||||||
help='L3 VPN Remote end point\'s public ip')
|
help='L3 VPN Remote end point\'s public ip')
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ Create a new NSX-T Group on MGW or CGW
|
|||||||
Sample Prerequisites:
|
Sample Prerequisites:
|
||||||
- SDDC deployed in VMware Cloud on AWS
|
- SDDC deployed in VMware Cloud on AWS
|
||||||
"""
|
"""
|
||||||
optional_args.add_argument('--gateway-type',
|
optional_args.add_argument('--gateway_type',
|
||||||
default='mgw',
|
default='mgw',
|
||||||
help='Gateway type. Either mgw or cgw')
|
help='Gateway type. Either mgw or cgw')
|
||||||
|
|
||||||
@ -44,11 +44,11 @@ required_args.add_argument('--name',
|
|||||||
required=True,
|
required=True,
|
||||||
help='Name of the security group to be created')
|
help='Name of the security group to be created')
|
||||||
|
|
||||||
optional_args.add_argument('--ip-address',
|
optional_args.add_argument('--ip_address',
|
||||||
default='172.31.0.0/24',
|
default='172.31.0.0/24',
|
||||||
help='IP address for the expression')
|
help='IP address for the expression')
|
||||||
|
|
||||||
optional_args.add_argument('--group-id',
|
optional_args.add_argument('--group_id',
|
||||||
help='ID of the group. A random ID will be used by default')
|
help='ID of the group. A random ID will be used by default')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -39,11 +39,11 @@ Sample Prerequisites:
|
|||||||
- SDDC deployed in VMware Cloud on AWS
|
- SDDC deployed in VMware Cloud on AWS
|
||||||
- A NSX-T security group
|
- A NSX-T security group
|
||||||
"""
|
"""
|
||||||
optional_args.add_argument('--gateway-type',
|
optional_args.add_argument('--gateway_type',
|
||||||
default='mgw',
|
default='mgw',
|
||||||
help='Gateway type. Either mgw or cgw')
|
help='Gateway type. Either mgw or cgw')
|
||||||
|
|
||||||
optional_args.add_argument('--group-id',
|
optional_args.add_argument('--group_id',
|
||||||
help='ID of the group to be deleted')
|
help='ID of the group to be deleted')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -40,11 +40,11 @@ Sample Prerequisites:
|
|||||||
- SDDC deployed in VMware Cloud on AWS
|
- SDDC deployed in VMware Cloud on AWS
|
||||||
- A NSX-T security group
|
- A NSX-T security group
|
||||||
"""
|
"""
|
||||||
optional_args.add_argument('--gateway-type',
|
optional_args.add_argument('--gateway_type',
|
||||||
default='mgw',
|
default='mgw',
|
||||||
help='Gateway type. Either mgw or cgw')
|
help='Gateway type. Either mgw or cgw')
|
||||||
|
|
||||||
optional_args.add_argument('--group-id',
|
optional_args.add_argument('--group_id',
|
||||||
help='ID of the group to be updated')
|
help='ID of the group to be updated')
|
||||||
|
|
||||||
required_args.add_argument('--name',
|
required_args.add_argument('--name',
|
||||||
|
@ -41,7 +41,7 @@ class OperationsOnOrganizations(object):
|
|||||||
required_args = parser.add_argument_group(
|
required_args = parser.add_argument_group(
|
||||||
'required arguments')
|
'required arguments')
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--refresh-token',
|
'--refresh_token',
|
||||||
required=True,
|
required=True,
|
||||||
help='VMware Cloud API refresh token')
|
help='VMware Cloud API refresh token')
|
||||||
|
|
||||||
|
@ -41,12 +41,12 @@ class CreateDeleteSDDC(object):
|
|||||||
'optional arguments')
|
'optional arguments')
|
||||||
|
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--refresh-token',
|
'--refresh_token',
|
||||||
required=True,
|
required=True,
|
||||||
help='Refresh token obtained from CSP')
|
help='Refresh token obtained from CSP')
|
||||||
|
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--org-id',
|
'--org_id',
|
||||||
required=True,
|
required=True,
|
||||||
help='Organization identifier.')
|
help='Organization identifier.')
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ required_args = parser.add_argument_group(
|
|||||||
'required arguments')
|
'required arguments')
|
||||||
|
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--refresh-token',
|
'--refresh_token',
|
||||||
required=True,
|
required=True,
|
||||||
help='Refresh token obtained from CSP')
|
help='Refresh token obtained from CSP')
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ required_args = parser.add_argument_group(
|
|||||||
'required arguments')
|
'required arguments')
|
||||||
|
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--refresh-token',
|
'--refresh_token',
|
||||||
required=True,
|
required=True,
|
||||||
help='Refresh token obtained from CSP')
|
help='Refresh token obtained from CSP')
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
|
@ -36,7 +36,7 @@ optional_args = parser.add_argument_group(
|
|||||||
'optional arguments')
|
'optional arguments')
|
||||||
|
|
||||||
required_args.add_argument(
|
required_args.add_argument(
|
||||||
'--refresh-token',
|
'--refresh_token',
|
||||||
required=True,
|
required=True,
|
||||||
help='Refresh token obtained from CSP')
|
help='Refresh token obtained from CSP')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user