Skip to content

Commit

Permalink
Releasing version 2.2.12
Browse files Browse the repository at this point in the history
Releasing version 2.2.12
  • Loading branch information
dshelbyo committed Jun 4, 2019
2 parents 2399977 + cf4a535 commit c101c60
Show file tree
Hide file tree
Showing 119 changed files with 1,842 additions and 775 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.

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

====================
2.2.12 - 2019-06-04
====================

Added
-----
* Support for autoscaling autonomous databases and autonomous data warehouses in the Database service
* Support for specifying fault domains as part of instance configurations in the Compute Autoscaling service
* Support for deleting tag definitions and tag namespaces in the Identity service

Fixed
-----
* Support for regions in realms other than oraclecloud.com in the Load Balancing service

====================
2.2.11 - 2019-05-28
====================
Expand Down
69 changes: 69 additions & 0 deletions examples/database/adb_example.py
@@ -0,0 +1,69 @@
# coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.

import oci

# Overview of Autonomous Data Warehouse
# https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/adboverview.htm

# Load the default configuration
config = oci.config.from_file()

# Set the compartment_id. You can use any compartment in your tenancy which
# has privileges for creating an Autonomous Database
compartment_id = config["tenancy"]


def create_adb(db_client):
# Create the model and populate the values
# See: https://docs.cloud.oracle.com/iaas/Content/Database/Tasks/adbcreating.htm
adb_request = oci.database.models.CreateAutonomousDatabaseDetails()

adb_request.compartment_id = compartment_id
adb_request.cpu_core_count = 1
adb_request.data_storage_size_in_tbs = 1
adb_request.db_name = "adbexample2"
adb_request.display_name = "PYSDK-ADB-EXAMPLE"
adb_request.db_workload = "OLTP"
adb_request.license_model = adb_request.LICENSE_MODEL_BRING_YOUR_OWN_LICENSE
adb_request.admin_password = "Welcome1!SDK"
adb_request.is_auto_scaling_enabled = True

adb_response = db_client.create_autonomous_database(
create_autonomous_database_details=adb_request,
retry_strategy=oci.retry.DEFAULT_RETRY_STRATEGY)

print("Created Automated Database {}".format(adb_response.data.id))

return adb_response.data.id


def delete_adb(db_client, adb_id):
# Delete the autonomous database
response = db_client.delete_autonomous_database(adb_id)
print(response)


def update_adb(db_client, adb_id):
# Create the model and populate the values
# See: https://docs.cloud.oracle.com/iaas/Content/Database/Tasks/adbcreating.htm
adb_request = oci.database.models.UpdateAutonomousDatabaseDetails()

adb_request.cpu_core_count = 2
adb_request.data_storage_size_in_tbs = 2
adb_request.is_auto_scaling_enabled = True

adb_response = db_client.update_autonomous_database(adb_id,
update_autonomous_database_details=adb_request,
retry_strategy=oci.retry.DEFAULT_RETRY_STRATEGY)

print("Created Automated Data Warehouse {}".format(adb_response.data.id))

return adb_response.data.id


if __name__ == "__main__":
# Initialize the client
db_client = oci.database.DatabaseClient(config)
adb_id = create_adb(db_client)
delete_adb(db_client, adb_id)
8 changes: 8 additions & 0 deletions examples/showoci/CHANGELOG.rst
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

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

====================
19.6.3 - 2019-06-03
====================

Added
-----
* Added support for ipsec dynamic routing (bgp)

====================
19.5.27 - 2019-05-27
====================
Expand Down
2 changes: 1 addition & 1 deletion examples/showoci/showoci.py
Expand Up @@ -62,7 +62,7 @@
import argparse
import datetime

version = "19.5.27"
version = "19.6.3"

##########################################################################
# execute_extract
Expand Down
8 changes: 6 additions & 2 deletions examples/showoci/showoci_output.py
Expand Up @@ -494,8 +494,12 @@ def __print_core_network_ipsec(self, ipsecs):
print(self.tabs + "CPE : " + ips['cpe'])
# get tunnel status
for t in ips['tunnels']:
print(self.tabs + "Tunnel : " + t['ip_address'] + " - " + t['status'] + " - " + t['status_date'])
print(self.tabs + "Routes : " + "\n Routes : ".join(ips['routes']))
print(self.tabs + "Tunnel : " + t['display_name'].ljust(12) + " - " + t['status'] + ", " + t['routing'] + ", VPN: " + t['vpn_ip'] + ", CPE: " + t['cpe_ip'] + ", " + t['status_date'])
if t['bgp_info']:
print(self.tabs + " : " + t['bgp_info'])

if ips['routes']:
print(self.tabs + "Routes : " + "\n Static : ".join(ips['routes']))
print("")

except Exception as e:
Expand Down
28 changes: 20 additions & 8 deletions examples/showoci/showoci_service.py
Expand Up @@ -98,7 +98,7 @@ def is_load_basic_network(self):
# class ShowOCIService
##########################################################################
class ShowOCIService(object):
oci_compatible_version = "2.2.7"
oci_compatible_version = "2.2.10"

##########################################################################
# Global Constants
Expand Down Expand Up @@ -413,9 +413,9 @@ def check_oci_version_compatible(self):
try:
# loop on digits
for i, rl in zip(self.get_oci_version().split("."), self.oci_compatible_version.split(".")):
if i > rl:
if int(i) > int(rl):
return True
if i < rl:
if int(i) < int(rl):
print("")
print("*********************************************************************")
print("Error, OCI version " + self.oci_compatible_version + " required !")
Expand Down Expand Up @@ -2276,13 +2276,25 @@ def __load_core_network_ips(self, virtual_network, compartments):
if arr.lifecycle_state == oci.core.models.IPSecConnection.LIFECYCLE_STATE_AVAILABLE:

# get tunnel info
# ipss = oci.core.models.IPSecConnectionTunnel
data_tun = []
try:
ipss = virtual_network.get_ip_sec_connection_device_status(arr.id).data
for tunnel in ipss.tunnels:
data_tun.append(
{'ip_address': str(tunnel.ip_address), 'status': str(tunnel.lifecycle_state),
'status_date': tunnel.time_state_modified.strftime("%Y-%m-%d %H:%M")})
tunnels = virtual_network.list_ip_sec_connection_tunnels(arr.id).data
for tunnel in tunnels:
tun_val = {'status': str(tunnel.status),
'lifecycle_state': str(tunnel.lifecycle_state),
'status_date': tunnel.time_status_updated.strftime("%Y-%m-%d %H:%M"),
'display_name': str(tunnel.display_name),
'routing': str(tunnel.routing),
'cpe_ip': str(tunnel.cpe_ip),
'vpn_ip': str(tunnel.vpn_ip),
'bgp_info': ""}

if tunnel.bgp_session_info:
bs = tunnel.bgp_session_info
tun_val['bgp_info'] = "BGP Status ".ljust(12) + " - " + str(bs.bgp_state + ", Cust: " + bs.customer_interface_ip + " (" + bs.customer_bgp_asn + "), Oracle: " + bs.oracle_interface_ip + " (" + bs.oracle_bgp_asn) + ")"

data_tun.append(tun_val)
except Exception:
pass

Expand Down
24 changes: 18 additions & 6 deletions src/oci/core/blockstorage_client.py
Expand Up @@ -2123,7 +2123,9 @@ def list_boot_volume_backups(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str boot_volume_id: (optional)
The OCID of the boot volume.
Expand Down Expand Up @@ -2270,7 +2272,9 @@ def list_boot_volumes(self, availability_domain, compartment_id, **kwargs):
Example: `Uocm:PHX-AD-1`
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
Expand Down Expand Up @@ -2436,7 +2440,9 @@ def list_volume_backups(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str volume_id: (optional)
The OCID of the volume.
Expand Down Expand Up @@ -2586,7 +2592,9 @@ def list_volume_group_backups(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str volume_group_id: (optional)
The OCID of the volume group.
Expand Down Expand Up @@ -2717,7 +2725,9 @@ def list_volume_groups(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down Expand Up @@ -2861,7 +2871,9 @@ def list_volumes(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down
40 changes: 30 additions & 10 deletions src/oci/core/compute_client.py
Expand Up @@ -630,7 +630,9 @@ def delete_app_catalog_subscription(self, listing_id, compartment_id, resource_v
The OCID of the listing.
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str resource_version: (required)
Listing Resource Version.
Expand Down Expand Up @@ -2484,7 +2486,9 @@ def list_app_catalog_subscriptions(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
Expand Down Expand Up @@ -2613,7 +2617,9 @@ def list_boot_volume_attachments(self, availability_domain, compartment_id, **kw
Example: `Uocm:PHX-AD-1`
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
Expand Down Expand Up @@ -2706,7 +2712,9 @@ def list_console_histories(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down Expand Up @@ -2859,7 +2867,9 @@ def list_images(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str display_name: (optional)
A filter to return only resources that match the given display name exactly.
Expand Down Expand Up @@ -3019,7 +3029,9 @@ def list_instance_console_connections(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str instance_id: (optional)
The OCID of the instance.
Expand Down Expand Up @@ -3254,7 +3266,9 @@ def list_instances(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down Expand Up @@ -3399,7 +3413,9 @@ def list_shapes(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down Expand Up @@ -3495,7 +3511,9 @@ def list_vnic_attachments(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down Expand Up @@ -3598,7 +3616,9 @@ def list_volume_attachments(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str availability_domain: (optional)
The name of the availability domain.
Expand Down
12 changes: 9 additions & 3 deletions src/oci/core/compute_management_client.py
Expand Up @@ -696,7 +696,9 @@ def list_instance_configurations(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
Expand Down Expand Up @@ -814,7 +816,9 @@ def list_instance_pool_instances(self, compartment_id, instance_pool_id, **kwarg
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str instance_pool_id: (required)
The OCID of the instance pool.
Expand Down Expand Up @@ -952,7 +956,9 @@ def list_instance_pools(self, compartment_id, **kwargs):
:param str compartment_id: (required)
The OCID of the compartment.
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str display_name: (optional)
A filter to return only resources that match the given display name exactly.
Expand Down

0 comments on commit c101c60

Please sign in to comment.