4747# - oci.healthchecks.HealthChecksClient
4848# - oci.announcements_service.AnnouncementClient
4949# - oci.limits.LimitsClient
50+ # - oci.integration.IntegrationInstanceClient
51+ # - oci.analytics.AnalyticsClient
52+ # - oci.oda.OdaClient
53+ # - oci.oce.OceInstanceClient
54+ # - oci.apigateway.GatewaysClient
55+ # - oci.functions.FunctionsManagementClient
5056#
5157# Modules Not Yet Covered:
5258# - oci.waas.WaasClient
5359# - oci.dns.DnsClient
60+ # - oci.data_catalog.DataCatalogClient
61+ # - oci.data_flow.DataFlowClient
62+ # - oci.data_science.DataScienceClient
63+ # - oci.events.EventsClient
5464#
5565##########################################################################
5666from __future__ import print_function
6272import argparse
6373import datetime
6474
65- version = "20.1.29 "
75+ version = "20.2.11 "
6676
6777##########################################################################
6878# execute_extract
@@ -219,32 +229,35 @@ def set_parser_arguments():
219229 parser .add_argument ('-a' , action = 'store_true' , default = False , dest = 'all' , help = 'Print All Resources' )
220230 parser .add_argument ('-ani' , action = 'store_true' , default = False , dest = 'allnoiam' , help = 'Print All Resources but identity' )
221231 parser .add_argument ('-an' , action = 'store_true' , default = False , dest = 'announcement' , help = 'Print Announcements' )
232+ parser .add_argument ('-api' , action = 'store_true' , default = False , dest = 'api' , help = 'Print API Gateways' )
222233 parser .add_argument ('-b' , action = 'store_true' , default = False , dest = 'budgets' , help = 'Print Budgets' )
223- parser .add_argument ('-n' , action = 'store_true' , default = False , dest = 'network' , help = 'Print Network' )
224- parser .add_argument ('-i' , action = 'store_true' , default = False , dest = 'identity' , help = 'Print Identity' )
225- parser .add_argument ('-ic' , action = 'store_true' , default = False , dest = 'identity_compartments' , help = 'Print Identity Compartments only' )
226234 parser .add_argument ('-c' , action = 'store_true' , default = False , dest = 'compute' , help = 'Print Compute' )
227235 parser .add_argument ('-cn' , action = 'store_true' , default = False , dest = 'container' , help = 'Print Containers' )
228- parser .add_argument ('-o' , action = 'store_true' , default = False , dest = 'object' , help = 'Print Object Storage' )
229- parser .add_argument ('-l' , action = 'store_true' , default = False , dest = 'load' , help = 'Print Load Balancer' )
230236 parser .add_argument ('-d' , action = 'store_true' , default = False , dest = 'database' , help = 'Print Database' )
231- parser .add_argument ('-f' , action = 'store_true' , default = False , dest = 'file' , help = 'Print File Storage' )
232237 parser .add_argument ('-e' , action = 'store_true' , default = False , dest = 'email' , help = 'Print EMail' )
238+ parser .add_argument ('-edge' , action = 'store_true' , default = False , dest = 'edge' , help = 'Print Edge Services (Healthcheck)' )
239+ parser .add_argument ('-f' , action = 'store_true' , default = False , dest = 'file' , help = 'Print File Storage' )
240+ parser .add_argument ('-fun' , action = 'store_true' , default = False , dest = 'function' , help = 'Print Functions' )
241+ parser .add_argument ('-i' , action = 'store_true' , default = False , dest = 'identity' , help = 'Print Identity' )
242+ parser .add_argument ('-ic' , action = 'store_true' , default = False , dest = 'identity_compartments' , help = 'Print Identity Compartments only' )
243+ parser .add_argument ('-l' , action = 'store_true' , default = False , dest = 'load' , help = 'Print Load Balancer' )
244+ parser .add_argument ('-lq' , action = 'store_true' , default = False , dest = 'limits' , help = 'Print Limits and Quotas' )
233245 parser .add_argument ('-m' , action = 'store_true' , default = False , dest = 'monitoring' , help = 'Print Monitoring and Notifications' )
234- parser .add_argument ('-s' , action = 'store_true' , default = False , dest = 'streams' , help = 'Print Streams' )
246+ parser .add_argument ('-n' , action = 'store_true' , default = False , dest = 'network' , help = 'Print Network' )
247+ parser .add_argument ('-o' , action = 'store_true' , default = False , dest = 'object' , help = 'Print Object Storage' )
248+ parser .add_argument ('-paas' , action = 'store_true' , default = False , dest = 'paas_native' , help = 'Print Oracle Paas Native - OIC OAC ODA' )
235249 parser .add_argument ('-rm' , action = 'store_true' , default = False , dest = 'orm' , help = 'Print Resource management' )
250+ parser .add_argument ('-s' , action = 'store_true' , default = False , dest = 'streams' , help = 'Print Streams' )
251+
236252 parser .add_argument ('-so' , action = 'store_true' , default = False , dest = 'sumonly' , help = 'Print Summary Only' )
237- parser .add_argument ('-paas' , action = 'store_true' , default = False , dest = 'paas_native' , help = 'Print Oracle Paas Native - OIC OAC ODA' )
238- parser .add_argument ('-edge' , action = 'store_true' , default = False , dest = 'edge' , help = 'Print Edge Services (Healthcheck)' )
239- parser .add_argument ('-lq' , action = 'store_true' , default = False , dest = 'limits' , help = 'Print Limits and Quotas' )
240253 parser .add_argument ('-mc' , action = 'store_true' , default = False , dest = 'mgdcompart' , help = 'exclude ManagedCompartmentForPaaS' )
241254 parser .add_argument ('-nr' , action = 'store_true' , default = False , dest = 'noroot' , help = 'Not include root compartment' )
242255 parser .add_argument ('-ip' , action = 'store_true' , default = False , dest = 'instance_principals' , help = 'Use Instance Principals for Authentication' )
243256 parser .add_argument ('-t' , default = "" , dest = 'profile' , help = 'Config file section to use (tenancy profile)' )
244257 parser .add_argument ('-p' , default = "" , dest = 'proxy' , help = 'Set Proxy (i.e. www-proxy-server.com:80) ' )
245258 parser .add_argument ('-rg' , default = "" , dest = 'region' , help = 'Filter by Region' )
246259 parser .add_argument ('-cp' , default = "" , dest = 'compart' , help = 'Filter by Compartment Name or OCID' )
247- parser .add_argument ('-cpr' , default = "" , dest = 'compart_recursive ' , help = 'Filter by Compartment Name or OCID include sub compartments ' )
260+ parser .add_argument ('-cpr' , default = "" , dest = 'compart_recur ' , help = 'Filter by Comp Name or OCID Recursive ' )
248261 parser .add_argument ('-cpath' , default = "" , dest = 'compartpath' , help = 'Filter by Compartment path ,(i.e. -cpath "Adi / Sub"' )
249262 parser .add_argument ('-tenantid' , default = "" , dest = 'tenantid' , help = 'Override confile file tenancy_id' )
250263 parser .add_argument ('-cf' , type = argparse .FileType ('r' ), dest = 'config' , help = "Config File" )
@@ -265,7 +278,8 @@ def set_parser_arguments():
265278 if not (result .all or result .allnoiam or result .network or result .identity or result .identity_compartments or
266279 result .compute or result .object or
267280 result .load or result .database or result .file or result .email or result .orm or result .container or
268- result .streams or result .budgets or result .monitoring or result .edge or result .announcement or result .limits or result .paas_native ):
281+ result .streams or result .budgets or result .monitoring or result .edge or result .announcement or result .limits or result .paas_native or
282+ result .api or result .function ):
269283
270284 parser .print_help ()
271285
@@ -328,6 +342,12 @@ def set_service_extract_flags(cmd):
328342 if cmd .all or cmd .allnoiam or cmd .budgets :
329343 prm .read_budgets = True
330344
345+ if cmd .all or cmd .allnoiam or cmd .function :
346+ prm .read_function = True
347+
348+ if cmd .all or cmd .allnoiam or cmd .api :
349+ prm .read_api = True
350+
331351 if cmd .all or cmd .allnoiam or cmd .limits :
332352 prm .read_limits = True
333353
@@ -359,8 +379,8 @@ def set_service_extract_flags(cmd):
359379 if cmd .compart :
360380 prm .filter_by_compartment = str (cmd .compart )
361381
362- if cmd .compart_recursive :
363- prm .filter_by_compartment_recursive = str (cmd .compart_recursive )
382+ if cmd .compart_recur :
383+ prm .filter_by_compartment_recursive = str (cmd .compart_recur )
364384
365385 if cmd .compartpath :
366386 prm .filter_by_compartment_path = str (cmd .compartpath )
0 commit comments