From 3defa4259980c2487dd7b6722a30f12a9a45c16e Mon Sep 17 00:00:00 2001 From: Cooper Date: Fri, 6 Dec 2019 16:17:57 +0100 Subject: [PATCH] fix network policies (#69) Fix cli for network policy --- main/cloudfoundry_client/main/main.py | 6 +++--- main/cloudfoundry_client/networking/__init__.py | 0 main/cloudfoundry_client/networking/v1/__init__.py | 0 main/cloudfoundry_client/networking/v1/external/__init__.py | 0 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 main/cloudfoundry_client/networking/__init__.py create mode 100644 main/cloudfoundry_client/networking/v1/__init__.py create mode 100644 main/cloudfoundry_client/networking/v1/external/__init__.py diff --git a/main/cloudfoundry_client/main/main.py b/main/cloudfoundry_client/main/main.py index 1655d3d..bd9a016 100644 --- a/main/cloudfoundry_client/main/main.py +++ b/main/cloudfoundry_client/main/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import argparse import json import logging @@ -170,7 +170,7 @@ def main(): commands = [ CommandDomain(display_name='Organizations', entity_name='organization', api_version='v3', - filter_list_parameters=[], allow_retrieve_by_name=True, + filter_list_parameters=['names', 'guids'], allow_retrieve_by_name=True, allow_creation=True, allow_deletion=True), CommandDomain(display_name='Spaces', entity_name='space', filter_list_parameters=['organization_guid'], allow_retrieve_by_name=True, allow_creation=True, allow_deletion=True), @@ -196,7 +196,7 @@ def main(): allow_retrieve_by_name=False, allow_creation=True, allow_deletion=True), CommandDomain(display_name='Buildpacks', entity_name='buildpack', api_version='v3', - filter_list_parameters=[], allow_retrieve_by_name=True, + filter_list_parameters=['names', 'stacks'], allow_retrieve_by_name=True, allow_creation=True, allow_deletion=True), CommandDomain(display_name='Domains', entity_name='domain', api_version='v3', diff --git a/main/cloudfoundry_client/networking/__init__.py b/main/cloudfoundry_client/networking/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main/cloudfoundry_client/networking/v1/__init__.py b/main/cloudfoundry_client/networking/v1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main/cloudfoundry_client/networking/v1/external/__init__.py b/main/cloudfoundry_client/networking/v1/external/__init__.py new file mode 100644 index 0000000..e69de29