Skip to content

Commit 505daf7

Browse files
authored
Releasing version 2.6.4 (#186)
Releasing version 2.6.4
1 parent 2a4a3d2 commit 505daf7

36 files changed

+1454
-57
lines changed

CHANGELOG.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ 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.6.4 - 2019-11-12
9+
====================
10+
11+
Added
12+
-----
13+
* Support for access to APEX and SQL Dev features on autonomous transaction processing and autonomous data warehouse resources in the Database service
14+
* Support for registering / deregistering autonomous transaction processing and autonomous data warehouse resources with Data Safe in the Database service
15+
* Support for redirecting HTTP / HTTPS request URIs to different URIs in the Load Balancing service
16+
* Support for specifying compartments on options APIs in the Container Engine for Kubernetes service
17+
* Support for volume performance units on block volumes in the Block Storage service
18+
719
====================
820
2.6.3 - 2019-11-05
921
====================

docs/api/load_balancer.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ Load Balancer
5858
oci.load_balancer.models.LoadBalancerPolicy
5959
oci.load_balancer.models.LoadBalancerProtocol
6060
oci.load_balancer.models.LoadBalancerShape
61+
oci.load_balancer.models.PathMatchCondition
6162
oci.load_balancer.models.PathMatchType
6263
oci.load_balancer.models.PathRoute
6364
oci.load_balancer.models.PathRouteSet
6465
oci.load_balancer.models.PathRouteSetDetails
66+
oci.load_balancer.models.RedirectRule
67+
oci.load_balancer.models.RedirectUri
6568
oci.load_balancer.models.RemoveHttpRequestHeaderRule
6669
oci.load_balancer.models.RemoveHttpResponseHeaderRule
6770
oci.load_balancer.models.Rule
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PathMatchCondition
2+
==================
3+
4+
.. currentmodule:: oci.load_balancer.models
5+
6+
.. autoclass:: PathMatchCondition
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RedirectRule
2+
============
3+
4+
.. currentmodule:: oci.load_balancer.models
5+
6+
.. autoclass:: RedirectRule
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RedirectUri
2+
===========
3+
4+
.. currentmodule:: oci.load_balancer.models
5+
6+
.. autoclass:: RedirectUri
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:

src/oci/container_engine/container_engine_client.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,9 @@ def get_cluster_options(self, cluster_option_id, **kwargs):
622622
:param str cluster_option_id: (required)
623623
The id of the option set to retrieve. Only \"all\" is supported.
624624
625+
:param str compartment_id: (optional)
626+
The OCID of the compartment.
627+
625628
:param str opc_request_id: (optional)
626629
Unique Oracle-assigned identifier for the request. If you need to contact
627630
Oracle about a particular request, please provide the request ID.
@@ -643,6 +646,7 @@ def get_cluster_options(self, cluster_option_id, **kwargs):
643646
# Don't accept unknown kwargs
644647
expected_kwargs = [
645648
"retry_strategy",
649+
"compartment_id",
646650
"opc_request_id"
647651
]
648652
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
@@ -660,6 +664,11 @@ def get_cluster_options(self, cluster_option_id, **kwargs):
660664
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
661665
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
662666

667+
query_params = {
668+
"compartmentId": kwargs.get("compartment_id", missing)
669+
}
670+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
671+
663672
header_params = {
664673
"accept": "application/json",
665674
"content-type": "application/json",
@@ -677,13 +686,15 @@ def get_cluster_options(self, cluster_option_id, **kwargs):
677686
resource_path=resource_path,
678687
method=method,
679688
path_params=path_params,
689+
query_params=query_params,
680690
header_params=header_params,
681691
response_type="ClusterOptions")
682692
else:
683693
return self.base_client.call_api(
684694
resource_path=resource_path,
685695
method=method,
686696
path_params=path_params,
697+
query_params=query_params,
687698
header_params=header_params,
688699
response_type="ClusterOptions")
689700

@@ -770,6 +781,9 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs):
770781
:param str node_pool_option_id: (required)
771782
The id of the option set to retrieve. Use \"all\" get all options, or use a cluster ID to get options specific to the provided cluster.
772783
784+
:param str compartment_id: (optional)
785+
The OCID of the compartment.
786+
773787
:param str opc_request_id: (optional)
774788
Unique Oracle-assigned identifier for the request. If you need to contact
775789
Oracle about a particular request, please provide the request ID.
@@ -791,6 +805,7 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs):
791805
# Don't accept unknown kwargs
792806
expected_kwargs = [
793807
"retry_strategy",
808+
"compartment_id",
794809
"opc_request_id"
795810
]
796811
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
@@ -808,6 +823,11 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs):
808823
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
809824
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
810825

826+
query_params = {
827+
"compartmentId": kwargs.get("compartment_id", missing)
828+
}
829+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
830+
811831
header_params = {
812832
"accept": "application/json",
813833
"content-type": "application/json",
@@ -825,13 +845,15 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs):
825845
resource_path=resource_path,
826846
method=method,
827847
path_params=path_params,
848+
query_params=query_params,
828849
header_params=header_params,
829850
response_type="NodePoolOptions")
830851
else:
831852
return self.base_client.call_api(
832853
resource_path=resource_path,
833854
method=method,
834855
path_params=path_params,
856+
query_params=query_params,
835857
header_params=header_params,
836858
response_type="NodePoolOptions")
837859

src/oci/container_engine/models/node_pool_options.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@ def __init__(self, **kwargs):
2121
The value to assign to the kubernetes_versions property of this NodePoolOptions.
2222
:type kubernetes_versions: list[str]
2323
24-
:param images:
25-
The value to assign to the images property of this NodePoolOptions.
26-
:type images: list[str]
27-
2824
:param shapes:
2925
The value to assign to the shapes property of this NodePoolOptions.
3026
:type shapes: list[str]
3127
28+
:param images:
29+
The value to assign to the images property of this NodePoolOptions.
30+
:type images: list[str]
31+
3232
"""
3333
self.swagger_types = {
3434
'kubernetes_versions': 'list[str]',
35-
'images': 'list[str]',
36-
'shapes': 'list[str]'
35+
'shapes': 'list[str]',
36+
'images': 'list[str]'
3737
}
3838

3939
self.attribute_map = {
4040
'kubernetes_versions': 'kubernetesVersions',
41-
'images': 'images',
42-
'shapes': 'shapes'
41+
'shapes': 'shapes',
42+
'images': 'images'
4343
}
4444

4545
self._kubernetes_versions = None
46-
self._images = None
4746
self._shapes = None
47+
self._images = None
4848

4949
@property
5050
def kubernetes_versions(self):
@@ -71,52 +71,52 @@ def kubernetes_versions(self, kubernetes_versions):
7171
self._kubernetes_versions = kubernetes_versions
7272

7373
@property
74-
def images(self):
74+
def shapes(self):
7575
"""
76-
Gets the images of this NodePoolOptions.
77-
Available image names.
76+
Gets the shapes of this NodePoolOptions.
77+
Available shapes for nodes.
7878
7979
80-
:return: The images of this NodePoolOptions.
80+
:return: The shapes of this NodePoolOptions.
8181
:rtype: list[str]
8282
"""
83-
return self._images
83+
return self._shapes
8484

85-
@images.setter
86-
def images(self, images):
85+
@shapes.setter
86+
def shapes(self, shapes):
8787
"""
88-
Sets the images of this NodePoolOptions.
89-
Available image names.
88+
Sets the shapes of this NodePoolOptions.
89+
Available shapes for nodes.
9090
9191
92-
:param images: The images of this NodePoolOptions.
92+
:param shapes: The shapes of this NodePoolOptions.
9393
:type: list[str]
9494
"""
95-
self._images = images
95+
self._shapes = shapes
9696

9797
@property
98-
def shapes(self):
98+
def images(self):
9999
"""
100-
Gets the shapes of this NodePoolOptions.
101-
Available shapes for nodes.
100+
Gets the images of this NodePoolOptions.
101+
Available image names.
102102
103103
104-
:return: The shapes of this NodePoolOptions.
104+
:return: The images of this NodePoolOptions.
105105
:rtype: list[str]
106106
"""
107-
return self._shapes
107+
return self._images
108108

109-
@shapes.setter
110-
def shapes(self, shapes):
109+
@images.setter
110+
def images(self, images):
111111
"""
112-
Sets the shapes of this NodePoolOptions.
113-
Available shapes for nodes.
112+
Sets the images of this NodePoolOptions.
113+
Available image names.
114114
115115
116-
:param shapes: The shapes of this NodePoolOptions.
116+
:param images: The images of this NodePoolOptions.
117117
:type: list[str]
118118
"""
119-
self._shapes = shapes
119+
self._images = images
120120

121121
def __repr__(self):
122122
return formatted_flat_dict(self)

src/oci/core/models/boot_volume.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def __init__(self, **kwargs):
8888
The value to assign to the is_hydrated property of this BootVolume.
8989
:type is_hydrated: bool
9090
91+
:param vpus_per_gb:
92+
The value to assign to the vpus_per_gb property of this BootVolume.
93+
:type vpus_per_gb: int
94+
9195
:param lifecycle_state:
9296
The value to assign to the lifecycle_state property of this BootVolume.
9397
Allowed values for this property are: "PROVISIONING", "RESTORING", "AVAILABLE", "TERMINATING", "TERMINATED", "FAULTY", 'UNKNOWN_ENUM_VALUE'.
@@ -129,6 +133,7 @@ def __init__(self, **kwargs):
129133
'id': 'str',
130134
'image_id': 'str',
131135
'is_hydrated': 'bool',
136+
'vpus_per_gb': 'int',
132137
'lifecycle_state': 'str',
133138
'size_in_gbs': 'int',
134139
'size_in_mbs': 'int',
@@ -148,6 +153,7 @@ def __init__(self, **kwargs):
148153
'id': 'id',
149154
'image_id': 'imageId',
150155
'is_hydrated': 'isHydrated',
156+
'vpus_per_gb': 'vpusPerGB',
151157
'lifecycle_state': 'lifecycleState',
152158
'size_in_gbs': 'sizeInGBs',
153159
'size_in_mbs': 'sizeInMBs',
@@ -166,6 +172,7 @@ def __init__(self, **kwargs):
166172
self._id = None
167173
self._image_id = None
168174
self._is_hydrated = None
175+
self._vpus_per_gb = None
169176
self._lifecycle_state = None
170177
self._size_in_gbs = None
171178
self._size_in_mbs = None
@@ -418,6 +425,30 @@ def is_hydrated(self, is_hydrated):
418425
"""
419426
self._is_hydrated = is_hydrated
420427

428+
@property
429+
def vpus_per_gb(self):
430+
"""
431+
Gets the vpus_per_gb of this BootVolume.
432+
The number of Volume Performance Units that will be applied to this boot volume per GB.
433+
434+
435+
:return: The vpus_per_gb of this BootVolume.
436+
:rtype: int
437+
"""
438+
return self._vpus_per_gb
439+
440+
@vpus_per_gb.setter
441+
def vpus_per_gb(self, vpus_per_gb):
442+
"""
443+
Sets the vpus_per_gb of this BootVolume.
444+
The number of Volume Performance Units that will be applied to this boot volume per GB.
445+
446+
447+
:param vpus_per_gb: The vpus_per_gb of this BootVolume.
448+
:type: int
449+
"""
450+
self._vpus_per_gb = vpus_per_gb
451+
421452
@property
422453
def lifecycle_state(self):
423454
"""

0 commit comments

Comments
 (0)