Skip to content

Commit

Permalink
Releasing version 2.14.3
Browse files Browse the repository at this point in the history
Releasing version 2.14.3
  • Loading branch information
bhagwatvyas authored May 19, 2020
2 parents 38f94cf + fed2f69 commit b1b3b7b
Show file tree
Hide file tree
Showing 36 changed files with 3,065 additions and 198 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ 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.14.3 - 2020-05-19
====================

Added
-----
* Support for returning the private IP of a private endpoint database in the Database service
* Support for native JWT validation in the API Gateway service

====================
2.14.2 - 2020-05-12
====================
Expand Down
8 changes: 8 additions & 0 deletions docs/api/apigateway.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,17 @@ Apigateway
oci.apigateway.models.GatewaySummary
oci.apigateway.models.HTTPBackend
oci.apigateway.models.HeaderFieldSpecification
oci.apigateway.models.JsonWebKey
oci.apigateway.models.JsonWebTokenClaim
oci.apigateway.models.JwtAuthenticationPolicy
oci.apigateway.models.OracleFunctionBackend
oci.apigateway.models.PemEncodedPublicKey
oci.apigateway.models.PublicKeySet
oci.apigateway.models.RateLimitingPolicy
oci.apigateway.models.RemoteJsonWebKeySet
oci.apigateway.models.RouteAuthorizationPolicy
oci.apigateway.models.StaticPublicKey
oci.apigateway.models.StaticPublicKeySet
oci.apigateway.models.StockResponseBackend
oci.apigateway.models.UpdateDeploymentDetails
oci.apigateway.models.UpdateGatewayDetails
Expand Down
11 changes: 11 additions & 0 deletions docs/api/apigateway/models/oci.apigateway.models.JsonWebKey.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
JsonWebKey
==========

.. currentmodule:: oci.apigateway.models

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

.. currentmodule:: oci.apigateway.models

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

.. currentmodule:: oci.apigateway.models

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

.. currentmodule:: oci.apigateway.models

.. autoclass:: PemEncodedPublicKey
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/api/apigateway/models/oci.apigateway.models.PublicKeySet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PublicKeySet
============

.. currentmodule:: oci.apigateway.models

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

.. currentmodule:: oci.apigateway.models

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

.. currentmodule:: oci.apigateway.models

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

.. currentmodule:: oci.apigateway.models

.. autoclass:: StaticPublicKeySet
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
5 changes: 5 additions & 0 deletions examples/showoci/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

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

=====================
20.05.18 - 2020-05-18
=====================
* Bug Fixed

=====================
20.05.04 - 2020-05-04
=====================
Expand Down
2 changes: 1 addition & 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.05.04"
version = "20.05.18"

##########################################################################
# check OCI version
Expand Down
11 changes: 4 additions & 7 deletions examples/showoci/showoci_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -2444,16 +2444,13 @@ def __csv_identity_users(self, users):

# Check if credential exist
if 'api_keys' in user:
data['api_keys'] = str(', '.join(x['id'] + " - " + x['lifecycle_state'] for x in user['api_keys']))

data['api_keys'] = str(', '.join(x['id'] + " - " + x['lifecycle_state'] + " - " + x['time_created'] for x in user['api_keys']))
if 'auth_token' in user:
data['auth_token'] = str(', '.join(x['id'] + " - " + x['description'] for x in user['auth_token']))

data['auth_token'] = str(', '.join(x['id'] + " - " + x['description'] + " - " + x['time_created'] for x in user['auth_token']))
if 'secret_key' in user:
data['secret_key'] = str(', '.join(x['id'] + " - " + x['display_name'] for x in user['secret_key']))

data['secret_key'] = str(', '.join(x['id'] + " - " + x['display_name'] + " - " + x['time_created'] for x in user['secret_key']))
if 'smtp_cred' in user:
data['smtp_cred'] = str(', '.join(x['id'] + " - " + x['description'] for x in user['smtp_cred']))
data['smtp_cred'] = str(', '.join(x['id'] + " - " + x['description'] + " - " + x['time_created'] for x in user['smtp_cred']))

self.csv_identity_users.append(data)

Expand Down
15 changes: 11 additions & 4 deletions examples/showoci/showoci_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4963,9 +4963,9 @@ def __load_object_storage_buckets(self, object_storage, compartments):
raise

if lp:
for l in lp.items:
val['object_lifecycle'] += " , LifeCycle: " + str(l.name) + ", " + str(
l.action) + ", " + str(l.time_amount) + " " + str(l.time_unit)
for lc in lp.items:
val['object_lifecycle'] += " , LifeCycle: " + str(lc.name) + ", " + str(
lc.action) + ", " + str(lc.time_amount) + " " + str(lc.time_unit)

data.append(val)
cnt += 1
Expand Down Expand Up @@ -5885,7 +5885,10 @@ def __load_database_dbsystems_home_patches(self, database_client, dbhome_id):

data = []
try:
dbps = oci.pagination.list_call_get_all_results(database_client.list_db_home_patches, dbhome_id).data
dbps = oci.pagination.list_call_get_all_results(
database_client.list_db_home_patches,
dbhome_id
).data

for dbp in dbps:
data.append({'id': dbp.id, 'description': str(dbp.description), 'version': str(dbp.version), 'time_released': str(dbp.time_released),
Expand All @@ -5896,6 +5899,10 @@ def __load_database_dbsystems_home_patches(self, database_client, dbhome_id):
if self.__check_service_error(e.code):
return data
else:
# Added in order to avoid internal error which happen often here
if 'InternalError' in str(e.code):
print('p', end="")
return data
raise
except oci.exceptions.RequestException as e:
if self.__check_request_error(e):
Expand Down
6 changes: 3 additions & 3 deletions examples/stop_untagged_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def stop_resource(instance_id, region):
try:
if base_compute.get_instance(instance_id).data.lifecycle_state in 'RUNNING':
try:
print('\t\tStopping instance. Stop response code: {1}'
print('\t\tStopping instance {0}. Stop response code: {1}'
.format(instance_id, str(base_compute.instance_action(instance_id, 'STOP').status)))
except oci.exceptions.ServiceError as e:
print('\t\tStopping instance failed. {0}' .format(e))
else:
print('\t\tThe instance was in the incorrect state to stop' .format(instance_id))
print('\t\tThe instance {} was in the incorrect state to stop' .format(instance_id))
except oci.exceptions.ServiceError as e:
print('\t\tStopping instance failed. {0}'.format(e))

Expand Down Expand Up @@ -158,7 +158,7 @@ def find_resources_wo_tags(instances_to_stop_list, search_string, tenancy_id):
stop_resource(result.identifier, region)

except oci.exceptions.ServiceError as e:
print('\t\tThe instance ({0}) could not be retrieved. It may be a ghost Search entry.'
print('\t\tThe instance ({0}) could not be retrieved. It may be a ghost Search entry. {1}'
.format(result.display_name, e))

# Only find audit events for those compartments with a stopped instance
Expand Down
6 changes: 6 additions & 0 deletions examples/usage_reports_to_adw/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.05.18 - 2020-05-18
=====================
* Added Rate Card with OCI_PRICE_LIST and using API to obtain info, Thanks to Fabio for the Idea and the API
* Added discount and public rate to the cost report

=====================
20.05.11 - 2020-05-11
=====================
Expand Down
Loading

0 comments on commit b1b3b7b

Please sign in to comment.