Skip to content

Commit c101c60

Browse files
authored
Releasing version 2.2.12
Releasing version 2.2.12
2 parents 2399977 + cf4a535 commit c101c60

File tree

119 files changed

+1842
-775
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1842
-775
lines changed

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
44

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

7+
====================
8+
2.2.12 - 2019-06-04
9+
====================
10+
11+
Added
12+
-----
13+
* Support for autoscaling autonomous databases and autonomous data warehouses in the Database service
14+
* Support for specifying fault domains as part of instance configurations in the Compute Autoscaling service
15+
* Support for deleting tag definitions and tag namespaces in the Identity service
16+
17+
Fixed
18+
-----
19+
* Support for regions in realms other than oraclecloud.com in the Load Balancing service
20+
721
====================
822
2.2.11 - 2019-05-28
923
====================

examples/database/adb_example.py

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding: utf-8
2+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
3+
4+
import oci
5+
6+
# Overview of Autonomous Data Warehouse
7+
# https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/adboverview.htm
8+
9+
# Load the default configuration
10+
config = oci.config.from_file()
11+
12+
# Set the compartment_id. You can use any compartment in your tenancy which
13+
# has privileges for creating an Autonomous Database
14+
compartment_id = config["tenancy"]
15+
16+
17+
def create_adb(db_client):
18+
# Create the model and populate the values
19+
# See: https://docs.cloud.oracle.com/iaas/Content/Database/Tasks/adbcreating.htm
20+
adb_request = oci.database.models.CreateAutonomousDatabaseDetails()
21+
22+
adb_request.compartment_id = compartment_id
23+
adb_request.cpu_core_count = 1
24+
adb_request.data_storage_size_in_tbs = 1
25+
adb_request.db_name = "adbexample2"
26+
adb_request.display_name = "PYSDK-ADB-EXAMPLE"
27+
adb_request.db_workload = "OLTP"
28+
adb_request.license_model = adb_request.LICENSE_MODEL_BRING_YOUR_OWN_LICENSE
29+
adb_request.admin_password = "Welcome1!SDK"
30+
adb_request.is_auto_scaling_enabled = True
31+
32+
adb_response = db_client.create_autonomous_database(
33+
create_autonomous_database_details=adb_request,
34+
retry_strategy=oci.retry.DEFAULT_RETRY_STRATEGY)
35+
36+
print("Created Automated Database {}".format(adb_response.data.id))
37+
38+
return adb_response.data.id
39+
40+
41+
def delete_adb(db_client, adb_id):
42+
# Delete the autonomous database
43+
response = db_client.delete_autonomous_database(adb_id)
44+
print(response)
45+
46+
47+
def update_adb(db_client, adb_id):
48+
# Create the model and populate the values
49+
# See: https://docs.cloud.oracle.com/iaas/Content/Database/Tasks/adbcreating.htm
50+
adb_request = oci.database.models.UpdateAutonomousDatabaseDetails()
51+
52+
adb_request.cpu_core_count = 2
53+
adb_request.data_storage_size_in_tbs = 2
54+
adb_request.is_auto_scaling_enabled = True
55+
56+
adb_response = db_client.update_autonomous_database(adb_id,
57+
update_autonomous_database_details=adb_request,
58+
retry_strategy=oci.retry.DEFAULT_RETRY_STRATEGY)
59+
60+
print("Created Automated Data Warehouse {}".format(adb_response.data.id))
61+
62+
return adb_response.data.id
63+
64+
65+
if __name__ == "__main__":
66+
# Initialize the client
67+
db_client = oci.database.DatabaseClient(config)
68+
adb_id = create_adb(db_client)
69+
delete_adb(db_client, adb_id)

examples/showoci/CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

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

7+
====================
8+
19.6.3 - 2019-06-03
9+
====================
10+
11+
Added
12+
-----
13+
* Added support for ipsec dynamic routing (bgp)
14+
715
====================
816
19.5.27 - 2019-05-27
917
====================

examples/showoci/showoci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
import argparse
6363
import datetime
6464

65-
version = "19.5.27"
65+
version = "19.6.3"
6666

6767
##########################################################################
6868
# execute_extract

examples/showoci/showoci_output.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,12 @@ def __print_core_network_ipsec(self, ipsecs):
494494
print(self.tabs + "CPE : " + ips['cpe'])
495495
# get tunnel status
496496
for t in ips['tunnels']:
497-
print(self.tabs + "Tunnel : " + t['ip_address'] + " - " + t['status'] + " - " + t['status_date'])
498-
print(self.tabs + "Routes : " + "\n Routes : ".join(ips['routes']))
497+
print(self.tabs + "Tunnel : " + t['display_name'].ljust(12) + " - " + t['status'] + ", " + t['routing'] + ", VPN: " + t['vpn_ip'] + ", CPE: " + t['cpe_ip'] + ", " + t['status_date'])
498+
if t['bgp_info']:
499+
print(self.tabs + " : " + t['bgp_info'])
500+
501+
if ips['routes']:
502+
print(self.tabs + "Routes : " + "\n Static : ".join(ips['routes']))
499503
print("")
500504

501505
except Exception as e:

examples/showoci/showoci_service.py

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def is_load_basic_network(self):
9898
# class ShowOCIService
9999
##########################################################################
100100
class ShowOCIService(object):
101-
oci_compatible_version = "2.2.7"
101+
oci_compatible_version = "2.2.10"
102102

103103
##########################################################################
104104
# Global Constants
@@ -413,9 +413,9 @@ def check_oci_version_compatible(self):
413413
try:
414414
# loop on digits
415415
for i, rl in zip(self.get_oci_version().split("."), self.oci_compatible_version.split(".")):
416-
if i > rl:
416+
if int(i) > int(rl):
417417
return True
418-
if i < rl:
418+
if int(i) < int(rl):
419419
print("")
420420
print("*********************************************************************")
421421
print("Error, OCI version " + self.oci_compatible_version + " required !")
@@ -2276,13 +2276,25 @@ def __load_core_network_ips(self, virtual_network, compartments):
22762276
if arr.lifecycle_state == oci.core.models.IPSecConnection.LIFECYCLE_STATE_AVAILABLE:
22772277

22782278
# get tunnel info
2279+
# ipss = oci.core.models.IPSecConnectionTunnel
22792280
data_tun = []
22802281
try:
2281-
ipss = virtual_network.get_ip_sec_connection_device_status(arr.id).data
2282-
for tunnel in ipss.tunnels:
2283-
data_tun.append(
2284-
{'ip_address': str(tunnel.ip_address), 'status': str(tunnel.lifecycle_state),
2285-
'status_date': tunnel.time_state_modified.strftime("%Y-%m-%d %H:%M")})
2282+
tunnels = virtual_network.list_ip_sec_connection_tunnels(arr.id).data
2283+
for tunnel in tunnels:
2284+
tun_val = {'status': str(tunnel.status),
2285+
'lifecycle_state': str(tunnel.lifecycle_state),
2286+
'status_date': tunnel.time_status_updated.strftime("%Y-%m-%d %H:%M"),
2287+
'display_name': str(tunnel.display_name),
2288+
'routing': str(tunnel.routing),
2289+
'cpe_ip': str(tunnel.cpe_ip),
2290+
'vpn_ip': str(tunnel.vpn_ip),
2291+
'bgp_info': ""}
2292+
2293+
if tunnel.bgp_session_info:
2294+
bs = tunnel.bgp_session_info
2295+
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) + ")"
2296+
2297+
data_tun.append(tun_val)
22862298
except Exception:
22872299
pass
22882300

src/oci/core/blockstorage_client.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,9 @@ def list_boot_volume_backups(self, compartment_id, **kwargs):
21232123
21242124
21252125
:param str compartment_id: (required)
2126-
The OCID of the compartment.
2126+
The `OCID`__ of the compartment.
2127+
2128+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
21272129
21282130
:param str boot_volume_id: (optional)
21292131
The OCID of the boot volume.
@@ -2270,7 +2272,9 @@ def list_boot_volumes(self, availability_domain, compartment_id, **kwargs):
22702272
Example: `Uocm:PHX-AD-1`
22712273
22722274
:param str compartment_id: (required)
2273-
The OCID of the compartment.
2275+
The `OCID`__ of the compartment.
2276+
2277+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
22742278
22752279
:param int limit: (optional)
22762280
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -2436,7 +2440,9 @@ def list_volume_backups(self, compartment_id, **kwargs):
24362440
24372441
24382442
:param str compartment_id: (required)
2439-
The OCID of the compartment.
2443+
The `OCID`__ of the compartment.
2444+
2445+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
24402446
24412447
:param str volume_id: (optional)
24422448
The OCID of the volume.
@@ -2586,7 +2592,9 @@ def list_volume_group_backups(self, compartment_id, **kwargs):
25862592
25872593
25882594
:param str compartment_id: (required)
2589-
The OCID of the compartment.
2595+
The `OCID`__ of the compartment.
2596+
2597+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
25902598
25912599
:param str volume_group_id: (optional)
25922600
The OCID of the volume group.
@@ -2717,7 +2725,9 @@ def list_volume_groups(self, compartment_id, **kwargs):
27172725
27182726
27192727
:param str compartment_id: (required)
2720-
The OCID of the compartment.
2728+
The `OCID`__ of the compartment.
2729+
2730+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
27212731
27222732
:param str availability_domain: (optional)
27232733
The name of the availability domain.
@@ -2861,7 +2871,9 @@ def list_volumes(self, compartment_id, **kwargs):
28612871
28622872
28632873
:param str compartment_id: (required)
2864-
The OCID of the compartment.
2874+
The `OCID`__ of the compartment.
2875+
2876+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
28652877
28662878
:param str availability_domain: (optional)
28672879
The name of the availability domain.

src/oci/core/compute_client.py

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,9 @@ def delete_app_catalog_subscription(self, listing_id, compartment_id, resource_v
630630
The OCID of the listing.
631631
632632
:param str compartment_id: (required)
633-
The OCID of the compartment.
633+
The `OCID`__ of the compartment.
634+
635+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
634636
635637
:param str resource_version: (required)
636638
Listing Resource Version.
@@ -2484,7 +2486,9 @@ def list_app_catalog_subscriptions(self, compartment_id, **kwargs):
24842486
24852487
24862488
:param str compartment_id: (required)
2487-
The OCID of the compartment.
2489+
The `OCID`__ of the compartment.
2490+
2491+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
24882492
24892493
:param int limit: (optional)
24902494
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -2613,7 +2617,9 @@ def list_boot_volume_attachments(self, availability_domain, compartment_id, **kw
26132617
Example: `Uocm:PHX-AD-1`
26142618
26152619
:param str compartment_id: (required)
2616-
The OCID of the compartment.
2620+
The `OCID`__ of the compartment.
2621+
2622+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
26172623
26182624
:param int limit: (optional)
26192625
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -2706,7 +2712,9 @@ def list_console_histories(self, compartment_id, **kwargs):
27062712
27072713
27082714
:param str compartment_id: (required)
2709-
The OCID of the compartment.
2715+
The `OCID`__ of the compartment.
2716+
2717+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
27102718
27112719
:param str availability_domain: (optional)
27122720
The name of the availability domain.
@@ -2859,7 +2867,9 @@ def list_images(self, compartment_id, **kwargs):
28592867
28602868
28612869
:param str compartment_id: (required)
2862-
The OCID of the compartment.
2870+
The `OCID`__ of the compartment.
2871+
2872+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
28632873
28642874
:param str display_name: (optional)
28652875
A filter to return only resources that match the given display name exactly.
@@ -3019,7 +3029,9 @@ def list_instance_console_connections(self, compartment_id, **kwargs):
30193029
30203030
30213031
:param str compartment_id: (required)
3022-
The OCID of the compartment.
3032+
The `OCID`__ of the compartment.
3033+
3034+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
30233035
30243036
:param str instance_id: (optional)
30253037
The OCID of the instance.
@@ -3254,7 +3266,9 @@ def list_instances(self, compartment_id, **kwargs):
32543266
32553267
32563268
:param str compartment_id: (required)
3257-
The OCID of the compartment.
3269+
The `OCID`__ of the compartment.
3270+
3271+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
32583272
32593273
:param str availability_domain: (optional)
32603274
The name of the availability domain.
@@ -3399,7 +3413,9 @@ def list_shapes(self, compartment_id, **kwargs):
33993413
34003414
34013415
:param str compartment_id: (required)
3402-
The OCID of the compartment.
3416+
The `OCID`__ of the compartment.
3417+
3418+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
34033419
34043420
:param str availability_domain: (optional)
34053421
The name of the availability domain.
@@ -3495,7 +3511,9 @@ def list_vnic_attachments(self, compartment_id, **kwargs):
34953511
34963512
34973513
:param str compartment_id: (required)
3498-
The OCID of the compartment.
3514+
The `OCID`__ of the compartment.
3515+
3516+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
34993517
35003518
:param str availability_domain: (optional)
35013519
The name of the availability domain.
@@ -3598,7 +3616,9 @@ def list_volume_attachments(self, compartment_id, **kwargs):
35983616
35993617
36003618
:param str compartment_id: (required)
3601-
The OCID of the compartment.
3619+
The `OCID`__ of the compartment.
3620+
3621+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
36023622
36033623
:param str availability_domain: (optional)
36043624
The name of the availability domain.

src/oci/core/compute_management_client.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,9 @@ def list_instance_configurations(self, compartment_id, **kwargs):
696696
697697
698698
:param str compartment_id: (required)
699-
The OCID of the compartment.
699+
The `OCID`__ of the compartment.
700+
701+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
700702
701703
:param int limit: (optional)
702704
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -814,7 +816,9 @@ def list_instance_pool_instances(self, compartment_id, instance_pool_id, **kwarg
814816
815817
816818
:param str compartment_id: (required)
817-
The OCID of the compartment.
819+
The `OCID`__ of the compartment.
820+
821+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
818822
819823
:param str instance_pool_id: (required)
820824
The OCID of the instance pool.
@@ -952,7 +956,9 @@ def list_instance_pools(self, compartment_id, **kwargs):
952956
953957
954958
:param str compartment_id: (required)
955-
The OCID of the compartment.
959+
The `OCID`__ of the compartment.
960+
961+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
956962
957963
:param str display_name: (optional)
958964
A filter to return only resources that match the given display name exactly.

0 commit comments

Comments
 (0)