Skip to content

Commit

Permalink
Releasing version 2.16.1
Browse files Browse the repository at this point in the history
Releasing version 2.16.1
  • Loading branch information
bhagwatvyas committed Jun 16, 2020
2 parents 8c44724 + 10ec1cc commit b7df00f
Show file tree
Hide file tree
Showing 65 changed files with 2,526 additions and 101 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ Change Log
All notable changes to this project will be documented in this file.

The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
====================
2.16.1 - 2020-06-16
====================

Added
-----
* Support for creating a new database from an existing database based on a given timestamp in the Database service
* Support for enabling archive log backups of databases in the Database service
* Support for returning the database version on autonomous container databases in the Database service
* Support for the new DNS format of the Data Transfer service
* Support for scheduled autoscaling, which allows for scaling actions triggered at particular times based on CRON expressions, in the Compute Autoscaling service
* Support for filtering of list APIs for groups, identity providers, identity provider groups, compartments, dynamic groups, network sources, policies, and users by name or lifecycle state in the Identity Service

====================
2.16.0 - 2020-06-09
====================
Expand Down
5 changes: 5 additions & 0 deletions docs/api/autoscaling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ Autoscaling
oci.autoscaling.models.CreateAutoScalingConfigurationDetails
oci.autoscaling.models.CreateAutoScalingPolicyDetails
oci.autoscaling.models.CreateConditionDetails
oci.autoscaling.models.CreateScheduledPolicyDetails
oci.autoscaling.models.CreateThresholdPolicyDetails
oci.autoscaling.models.CronExecutionSchedule
oci.autoscaling.models.ExecutionSchedule
oci.autoscaling.models.InstancePoolResource
oci.autoscaling.models.Metric
oci.autoscaling.models.Resource
oci.autoscaling.models.ScheduledPolicy
oci.autoscaling.models.Threshold
oci.autoscaling.models.ThresholdPolicy
oci.autoscaling.models.UpdateAutoScalingConfigurationDetails
oci.autoscaling.models.UpdateAutoScalingPolicyDetails
oci.autoscaling.models.UpdateConditionDetails
oci.autoscaling.models.UpdateScheduledPolicyDetails
oci.autoscaling.models.UpdateThresholdPolicyDetails
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CreateScheduledPolicyDetails
============================

.. currentmodule:: oci.autoscaling.models

.. autoclass:: CreateScheduledPolicyDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CronExecutionSchedule
=====================

.. currentmodule:: oci.autoscaling.models

.. autoclass:: CronExecutionSchedule
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ExecutionSchedule
=================

.. currentmodule:: oci.autoscaling.models

.. autoclass:: ExecutionSchedule
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ScheduledPolicy
===============

.. currentmodule:: oci.autoscaling.models

.. autoclass:: ScheduledPolicy
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
UpdateScheduledPolicyDetails
============================

.. currentmodule:: oci.autoscaling.models

.. autoclass:: UpdateScheduledPolicyDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
4 changes: 4 additions & 0 deletions docs/api/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ Database
oci.database.models.CreateDataGuardAssociationWithNewDbSystemDetails
oci.database.models.CreateDatabaseBase
oci.database.models.CreateDatabaseDetails
oci.database.models.CreateDatabaseFromAnotherDatabaseDetails
oci.database.models.CreateDatabaseFromBackup
oci.database.models.CreateDatabaseFromBackupDetails
oci.database.models.CreateDbHomeBase
oci.database.models.CreateDbHomeDetails
oci.database.models.CreateDbHomeFromBackupDetails
oci.database.models.CreateDbHomeFromDatabaseDetails
oci.database.models.CreateDbHomeWithDbSystemIdDetails
oci.database.models.CreateDbHomeWithDbSystemIdFromBackupDetails
oci.database.models.CreateDbHomeWithDbSystemIdFromDatabaseDetails
oci.database.models.CreateDbHomeWithVmClusterIdDetails
oci.database.models.CreateExadataInfrastructureDetails
oci.database.models.CreateExternalBackupJobDetails
Expand Down Expand Up @@ -117,6 +120,7 @@ Database
oci.database.models.LaunchDbSystemBase
oci.database.models.LaunchDbSystemDetails
oci.database.models.LaunchDbSystemFromBackupDetails
oci.database.models.LaunchDbSystemFromDatabaseDetails
oci.database.models.MaintenanceRun
oci.database.models.MaintenanceRunSummary
oci.database.models.MaintenanceWindow
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CreateDatabaseFromAnotherDatabaseDetails
========================================

.. currentmodule:: oci.database.models

.. autoclass:: CreateDatabaseFromAnotherDatabaseDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CreateDbHomeFromDatabaseDetails
===============================

.. currentmodule:: oci.database.models

.. autoclass:: CreateDbHomeFromDatabaseDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CreateDbHomeWithDbSystemIdFromDatabaseDetails
=============================================

.. currentmodule:: oci.database.models

.. autoclass:: CreateDbHomeWithDbSystemIdFromDatabaseDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LaunchDbSystemFromDatabaseDetails
=================================

.. currentmodule:: oci.database.models

.. autoclass:: LaunchDbSystemFromDatabaseDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
9 changes: 4 additions & 5 deletions examples/list_resources_in_tenancy/list_all_ipsec_tunnels_in_tenancy.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
# coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
##########################################################################
# Copyright(c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# list_all_ipsec_tunnels_in_tenancy.py
#
# @author: Adi Zohar
#
# Supports Python 2 and 3
#
# coding: utf-8
# Supports Python 3
##########################################################################
# Info:
# List all IPSEC tunnels in Tenancy including DRG redundancy
Expand Down
9 changes: 4 additions & 5 deletions examples/list_resources_in_tenancy/list_all_virtual_circuits_in_tenancy.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
# coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
##########################################################################
# Copyright(c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# list_all_virtual_circuits_in_tenancy.py
#
# @author: Adi Zohar
#
# Supports Python 2 and 3
#
# coding: utf-8
# Supports Python 3
##########################################################################
# Info:
# List all Virtual Circuits in Tenancy including DRG redundancy
Expand Down
7 changes: 3 additions & 4 deletions examples/list_resources_in_tenancy/list_compute_tags_in_tenancy.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
# coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
##########################################################################
# Copyright(c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# list_compute_tags_in_tenancy.py
#
# @author: Adi Zohar
#
# Supports Python 3
#
# coding: utf-8
##########################################################################
# Info:
# List all compute tags in Tenancy
Expand Down
7 changes: 3 additions & 4 deletions examples/list_resources_in_tenancy/list_dbsystem_with_maintenance_in_tenancy.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3
# coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
##########################################################################
# Copyright(c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# list_dbsystem_with_maintenance_in_tenancy.py
#
# @author: Adi Zohar
#
# Supports Python 3
#
# coding: utf-8
##########################################################################
# Info:
# List all dbsystems including maintenance in Tenancy
Expand Down
6 changes: 6 additions & 0 deletions examples/showoci/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.

=====================
20.06.15 - 2020-06-15
=====================
* Added Maintatance for DBSystem including alert if maintenance is less than 14 days
* Added -nobackups flags

=====================
20.06.09 - 2020-06-09
=====================
Expand Down
21 changes: 9 additions & 12 deletions examples/showoci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,10 @@ Execute
```
$ ./showoci.py
usage: showoci.py [-h] [-a] [-ani] [-an] [-api] [-b] [-c] [-cn] [-d] [-e]
[-edge] [-f] [-fun] [-i] [-ic] [-l] [-lq] [-m] [-n] [-o]
[-paas] [-dataai] [-rm] [-s] [-so] [-mc] [-nr] [-ip]
[-t PROFILE] [-p PROXY] [-rg REGION] [-cp COMPART]
[-cpr COMPART_RECUR] [-cpath COMPARTPATH]
[-tenantid TENANTID] [-cf CONFIG] [-csv CSV] [-jf JOUTFILE]
[-js] [-sjf SJOUTFILE] [-cachef SERVICEFILE] [-caches]
[--version]
usage: showoci.py [-h] [-a] [-ani] [-an] [-api] [-b] [-c] [-cn] [-d] [-e] [-edge] [-f] [-fun] [-i] [-ic] [-isc] [-l] [-lq] [-m] [-n] [-o]
[-paas] [-dataai] [-rm] [-s] [-nobackups] [-so] [-mc] [-nr] [-ip] [-dt] [-t PROFILE] [-p PROXY] [-rg REGION]
[-cp COMPART] [-cpr COMPART_RECUR] [-cpath COMPARTPATH] [-tenantid TENANTID] [-cf CONFIG] [-csv CSV] [-jf JOUTFILE]
[-js] [-sjf SJOUTFILE] [-cachef SERVICEFILE] [-caches] [--version]
optional arguments:
-h, --help show this help message and exit
Expand All @@ -178,22 +174,23 @@ optional arguments:
-n Print Network
-o Print Object Storage
-paas Print PaaS Platform Services - OIC OAC OCE
-dataai Print D.Science, D.Catalog, D.Flow, ODA or BDS
-dataai Print - D.Science, D.Catalog, D.Flow, ODA and BDS
-rm Print Resource management
-s Print Streams
-nobackups Do not process backups
-so Print Summary Only
-mc exclude ManagedCompartmentForPaaS
-nr Not include root compartment
-ip Use Instance Principals for Authentication
-dt Use Delegation Token for Authentication
-dt Use Delegation Token (Cloud shell)
-t PROFILE Config file section to use (tenancy profile)
-p PROXY Set Proxy (i.e. www-proxy-server.com:80)
-rg REGION Filter by Region
-cp COMPART Filter by Compartment Name or OCID
-cpr COMPART_RECUR Filter by Comp Name or OCID Recursive
-cpr COMPART_RECUR Filter by Comp Name Recursive
-cpath COMPARTPATH Filter by Compartment path ,(i.e. -cpath "Adi / Sub"
-tenantid TENANTID Override confile file tenancy_id
-cf CONFIG Config File
-cf CONFIG Config File (~/.oci/config)
-csv CSV Output to CSV files, Input as file header
-jf JOUTFILE Output to file (JSON format)
-js Output to screen (JSON format)
Expand Down
12 changes: 11 additions & 1 deletion examples/showoci/showoci.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
import argparse
import datetime

version = "20.06.09"
version = "20.06.16"

##########################################################################
# check OCI version
Expand Down Expand Up @@ -214,6 +214,12 @@ def execute_extract():
if data.get_service_reboot_migration() > 0:
output.print_header(str(data.get_service_reboot_migration()) + " Reboot Migration Alert for Compute or DB Node", 0)

# if dbsystem maintenance
if data.get_service_dbsystem_maintenance():
output.print_header("DB System Maintenance", 0)
for alert in data.get_service_dbsystem_maintenance():
print(alert)

# print completion
output.print_header("Completed " + complete_message + " at " + str(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")), 0)

Expand Down Expand Up @@ -269,6 +275,7 @@ def set_parser_arguments():
parser.add_argument('-rm', action='store_true', default=False, dest='orm', help='Print Resource management')
parser.add_argument('-s', action='store_true', default=False, dest='streams', help='Print Streams')

parser.add_argument('-nobackups', action='store_true', default=False, dest='skip_backups', help='Do not process backups')
parser.add_argument('-so', action='store_true', default=False, dest='sumonly', help='Print Summary Only')
parser.add_argument('-mc', action='store_true', default=False, dest='mgdcompart', help='exclude ManagedCompartmentForPaaS')
parser.add_argument('-nr', action='store_true', default=False, dest='noroot', help='Not include root compartment')
Expand Down Expand Up @@ -390,6 +397,9 @@ def set_service_extract_flags(cmd):
if cmd.noroot:
prm.read_root_compartment = False

if cmd.skip_backups:
prm.skip_backups = True

if cmd.config:
if cmd.config.name:
prm.config_file = cmd.config.name
Expand Down
Loading

0 comments on commit b7df00f

Please sign in to comment.