Skip to content

Commit fbdde60

Browse files
author
Art Hall
committed
Releasing version 2.0.3
1 parent c62f6b9 commit fbdde60

File tree

104 files changed

+1404
-805
lines changed

Some content is hidden

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

104 files changed

+1404
-805
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.0.3 -2018-09-06
9+
====================
10+
11+
Added
12+
-----
13+
* Added support for updating metadata fields on an instance in the Compute service
14+
15+
Fixed
16+
-------
17+
* Fixed example wait_for_resource_in_state.py to use existing response objects. The updated example can be found on `GitHub <https://github.com/oracle/oci-python-sdk/blob/master/examples/wait_for_resource_in_state.py>`__.
18+
719
====================
820
2.0.2 - 2018-08-23
921
====================

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ mock==2.0.0
77
pyOpenSSL==17.4.0
88
pytest==3.2.3
99
pytest-catchlog==1.2.2
10+
pytest-cov==2.5.1
1011
python-dateutil>=2.5.3,<=2.7.3
1112
pytz>=2016.10
1213
sphinx-rtd-theme==0.2.5b2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def open_relative(*path):
3030

3131
requires = [
3232
"certifi",
33-
"configparser==3.5.0",
33+
"configparser>=3.5.0b1",
3434
"cryptography>=2.1.3",
3535
"pyOpenSSL<=17.4.0",
3636
"python-dateutil>=2.5.3,<=2.7.3",

src/oci/core/blockstorage_client.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ def create_volume(self, create_volume_details, **kwargs):
236236
For general information about block volumes, see
237237
`Overview of Block Volume Service`__.
238238
239-
A volume and instance can be in separate compartments but must be in the same Availability Domain.
239+
A volume and instance can be in separate compartments but must be in the same availability domain.
240240
For information about access control and compartments, see
241241
`Overview of the IAM Service`__. For information about
242-
Availability Domains, see `Regions and Availability Domains`__.
243-
To get a list of Availability Domains, use the `ListAvailabilityDomains` operation
242+
availability domains, see `Regions and Availability Domains`__.
243+
To get a list of availability domains, use the `ListAvailabilityDomains` operation
244244
in the Identity and Access Management Service API.
245245
246246
You may optionally specify a *display name* for the volume, which is simply a friendly name or
@@ -1742,9 +1742,9 @@ def list_boot_volume_backups(self, compartment_id, **kwargs):
17421742
sort order is case sensitive.
17431743
17441744
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
1745-
optionally filter by Availability Domain if the scope of the resource type is within a
1746-
single Availability Domain. If you call one of these \"List\" operations without specifying
1747-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
1745+
optionally filter by availability domain if the scope of the resource type is within a
1746+
single availability domain. If you call one of these \"List\" operations without specifying
1747+
an availability domain, the resources are grouped by availability domain, then sorted.
17481748
17491749
Allowed values are: "TIMECREATED", "DISPLAYNAME"
17501750
@@ -1850,11 +1850,11 @@ def list_boot_volume_backups(self, compartment_id, **kwargs):
18501850
def list_boot_volumes(self, availability_domain, compartment_id, **kwargs):
18511851
"""
18521852
ListBootVolumes
1853-
Lists the boot volumes in the specified compartment and Availability Domain.
1853+
Lists the boot volumes in the specified compartment and availability domain.
18541854
18551855
18561856
:param str availability_domain: (required)
1857-
The name of the Availability Domain.
1857+
The name of the availability domain.
18581858
18591859
Example: `Uocm:PHX-AD-1`
18601860
@@ -2031,9 +2031,9 @@ def list_volume_backups(self, compartment_id, **kwargs):
20312031
sort order is case sensitive.
20322032
20332033
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2034-
optionally filter by Availability Domain if the scope of the resource type is within a
2035-
single Availability Domain. If you call one of these \"List\" operations without specifying
2036-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2034+
optionally filter by availability domain if the scope of the resource type is within a
2035+
single availability domain. If you call one of these \"List\" operations without specifying
2036+
an availability domain, the resources are grouped by availability domain, then sorted.
20372037
20382038
Allowed values are: "TIMECREATED", "DISPLAYNAME"
20392039
@@ -2168,9 +2168,9 @@ def list_volume_group_backups(self, compartment_id, **kwargs):
21682168
sort order is case sensitive.
21692169
21702170
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2171-
optionally filter by Availability Domain if the scope of the resource type is within a
2172-
single Availability Domain. If you call one of these \"List\" operations without specifying
2173-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2171+
optionally filter by availability domain if the scope of the resource type is within a
2172+
single availability domain. If you call one of these \"List\" operations without specifying
2173+
an availability domain, the resources are grouped by availability domain, then sorted.
21742174
21752175
Allowed values are: "TIMECREATED", "DISPLAYNAME"
21762176
@@ -2272,7 +2272,7 @@ def list_volume_groups(self, compartment_id, **kwargs):
22722272
The OCID of the compartment.
22732273
22742274
:param str availability_domain: (optional)
2275-
The name of the Availability Domain.
2275+
The name of the availability domain.
22762276
22772277
Example: `Uocm:PHX-AD-1`
22782278
@@ -2293,9 +2293,9 @@ def list_volume_groups(self, compartment_id, **kwargs):
22932293
sort order is case sensitive.
22942294
22952295
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2296-
optionally filter by Availability Domain if the scope of the resource type is within a
2297-
single Availability Domain. If you call one of these \"List\" operations without specifying
2298-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2296+
optionally filter by availability domain if the scope of the resource type is within a
2297+
single availability domain. If you call one of these \"List\" operations without specifying
2298+
an availability domain, the resources are grouped by availability domain, then sorted.
22992299
23002300
Allowed values are: "TIMECREATED", "DISPLAYNAME"
23012301
@@ -2401,14 +2401,14 @@ def list_volume_groups(self, compartment_id, **kwargs):
24012401
def list_volumes(self, compartment_id, **kwargs):
24022402
"""
24032403
ListVolumes
2404-
Lists the volumes in the specified compartment and Availability Domain.
2404+
Lists the volumes in the specified compartment and availability domain.
24052405
24062406
24072407
:param str compartment_id: (required)
24082408
The OCID of the compartment.
24092409
24102410
:param str availability_domain: (optional)
2411-
The name of the Availability Domain.
2411+
The name of the availability domain.
24122412
24132413
Example: `Uocm:PHX-AD-1`
24142414
@@ -2429,9 +2429,9 @@ def list_volumes(self, compartment_id, **kwargs):
24292429
sort order is case sensitive.
24302430
24312431
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2432-
optionally filter by Availability Domain if the scope of the resource type is within a
2433-
single Availability Domain. If you call one of these \"List\" operations without specifying
2434-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2432+
optionally filter by availability domain if the scope of the resource type is within a
2433+
single availability domain. If you call one of these \"List\" operations without specifying
2434+
an availability domain, the resources are grouped by availability domain, then sorted.
24352435
24362436
Allowed values are: "TIMECREATED", "DISPLAYNAME"
24372437

src/oci/core/compute_client.py

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,16 +1820,16 @@ def instance_action(self, instance_id, action, **kwargs):
18201820
def launch_instance(self, launch_instance_details, **kwargs):
18211821
"""
18221822
LaunchInstance
1823-
Creates a new instance in the specified compartment and the specified Availability Domain.
1823+
Creates a new instance in the specified compartment and the specified availability domain.
18241824
For general information about instances, see
18251825
`Overview of the Compute Service`__.
18261826
18271827
For information about access control and compartments, see
18281828
`Overview of the IAM Service`__.
18291829
1830-
For information about Availability Domains, see
1830+
For information about availability domains, see
18311831
`Regions and Availability Domains`__.
1832-
To get a list of Availability Domains, use the `ListAvailabilityDomains` operation
1832+
To get a list of availability domains, use the `ListAvailabilityDomains` operation
18331833
in the Identity and Access Management Service API.
18341834
18351835
All Oracle Cloud Infrastructure resources, including instances, get an Oracle-assigned,
@@ -1929,7 +1929,7 @@ def list_boot_volume_attachments(self, availability_domain, compartment_id, **kw
19291929
19301930
19311931
:param str availability_domain: (required)
1932-
The name of the Availability Domain.
1932+
The name of the availability domain.
19331933
19341934
Example: `Uocm:PHX-AD-1`
19351935
@@ -2022,7 +2022,7 @@ def list_console_histories(self, compartment_id, **kwargs):
20222022
The OCID of the compartment.
20232023
20242024
:param str availability_domain: (optional)
2025-
The name of the Availability Domain.
2025+
The name of the availability domain.
20262026
20272027
Example: `Uocm:PHX-AD-1`
20282028
@@ -2043,9 +2043,9 @@ def list_console_histories(self, compartment_id, **kwargs):
20432043
sort order is case sensitive.
20442044
20452045
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2046-
optionally filter by Availability Domain if the scope of the resource type is within a
2047-
single Availability Domain. If you call one of these \"List\" operations without specifying
2048-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2046+
optionally filter by availability domain if the scope of the resource type is within a
2047+
single availability domain. If you call one of these \"List\" operations without specifying
2048+
an availability domain, the resources are grouped by availability domain, then sorted.
20492049
20502050
Allowed values are: "TIMECREATED", "DISPLAYNAME"
20512051
@@ -2196,9 +2196,9 @@ def list_images(self, compartment_id, **kwargs):
21962196
sort order is case sensitive.
21972197
21982198
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2199-
optionally filter by Availability Domain if the scope of the resource type is within a
2200-
single Availability Domain. If you call one of these \"List\" operations without specifying
2201-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2199+
optionally filter by availability domain if the scope of the resource type is within a
2200+
single availability domain. If you call one of these \"List\" operations without specifying
2201+
an availability domain, the resources are grouped by availability domain, then sorted.
22022202
22032203
Allowed values are: "TIMECREATED", "DISPLAYNAME"
22042204
@@ -2391,7 +2391,7 @@ def list_instance_console_connections(self, compartment_id, **kwargs):
23912391
def list_instances(self, compartment_id, **kwargs):
23922392
"""
23932393
ListInstances
2394-
Lists the instances in the specified compartment and the specified Availability Domain.
2394+
Lists the instances in the specified compartment and the specified availability domain.
23952395
You can filter the results by specifying an instance name (the list will include all the identically-named
23962396
instances in the compartment).
23972397
@@ -2400,7 +2400,7 @@ def list_instances(self, compartment_id, **kwargs):
24002400
The OCID of the compartment.
24012401
24022402
:param str availability_domain: (optional)
2403-
The name of the Availability Domain.
2403+
The name of the availability domain.
24042404
24052405
Example: `Uocm:PHX-AD-1`
24062406
@@ -2421,9 +2421,9 @@ def list_instances(self, compartment_id, **kwargs):
24212421
sort order is case sensitive.
24222422
24232423
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
2424-
optionally filter by Availability Domain if the scope of the resource type is within a
2425-
single Availability Domain. If you call one of these \"List\" operations without specifying
2426-
an Availability Domain, the resources are grouped by Availability Domain, then sorted.
2424+
optionally filter by availability domain if the scope of the resource type is within a
2425+
single availability domain. If you call one of these \"List\" operations without specifying
2426+
an availability domain, the resources are grouped by availability domain, then sorted.
24272427
24282428
Allowed values are: "TIMECREATED", "DISPLAYNAME"
24292429
@@ -2537,7 +2537,7 @@ def list_shapes(self, compartment_id, **kwargs):
25372537
The OCID of the compartment.
25382538
25392539
:param str availability_domain: (optional)
2540-
The name of the Availability Domain.
2540+
The name of the availability domain.
25412541
25422542
Example: `Uocm:PHX-AD-1`
25432543
@@ -2618,14 +2618,14 @@ def list_vnic_attachments(self, compartment_id, **kwargs):
26182618
ListVnicAttachments
26192619
Lists the VNIC attachments in the specified compartment. A VNIC attachment
26202620
resides in the same compartment as the attached instance. The list can be
2621-
filtered by instance, VNIC, or Availability Domain.
2621+
filtered by instance, VNIC, or availability domain.
26222622
26232623
26242624
:param str compartment_id: (required)
26252625
The OCID of the compartment.
26262626
26272627
:param str availability_domain: (optional)
2628-
The name of the Availability Domain.
2628+
The name of the availability domain.
26292629
26302630
Example: `Uocm:PHX-AD-1`
26312631
@@ -2720,7 +2720,7 @@ def list_volume_attachments(self, compartment_id, **kwargs):
27202720
The OCID of the compartment.
27212721
27222722
:param str availability_domain: (optional)
2723-
The name of the Availability Domain.
2723+
The name of the availability domain.
27242724
27252725
Example: `Uocm:PHX-AD-1`
27262726
@@ -3067,7 +3067,12 @@ def update_image(self, image_id, update_image_details, **kwargs):
30673067
def update_instance(self, instance_id, update_instance_details, **kwargs):
30683068
"""
30693069
UpdateInstance
3070-
Updates the display name of the specified instance. Avoid entering confidential information.
3070+
Updates certain fields on the specified instance. Fields that are not provided in the
3071+
request will not be updated. Avoid entering confidential information.
3072+
3073+
Changes to metadata fields will be reflected in the instance metadata service (this may take
3074+
up to a minute).
3075+
30713076
The OCID of the instance remains the same.
30723077
30733078

src/oci/core/models/boot_volume.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class BootVolume(object):
1616
talk to an administrator. If you're an administrator who needs to write policies to give users access, see
1717
`Getting Started with Policies`__.
1818
19+
**Warning:** Oracle recommends that you avoid using any confidential information when you
20+
supply string values using the API.
21+
1922
__ https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumes.htm
2023
__ https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm
2124
"""
@@ -161,7 +164,7 @@ def __init__(self, **kwargs):
161164
def availability_domain(self):
162165
"""
163166
**[Required]** Gets the availability_domain of this BootVolume.
164-
The Availability Domain of the boot volume.
167+
The availability domain of the boot volume.
165168
166169
Example: `Uocm:PHX-AD-1`
167170
@@ -175,7 +178,7 @@ def availability_domain(self):
175178
def availability_domain(self, availability_domain):
176179
"""
177180
Sets the availability_domain of this BootVolume.
178-
The Availability Domain of the boot volume.
181+
The availability domain of the boot volume.
179182
180183
Example: `Uocm:PHX-AD-1`
181184
@@ -461,7 +464,7 @@ def size_in_mbs(self, size_in_mbs):
461464
def source_details(self):
462465
"""
463466
Gets the source_details of this BootVolume.
464-
The boot volume source, either an existing boot volume in the same Availability Domain or a boot volume backup.
467+
The boot volume source, either an existing boot volume in the same availability domain or a boot volume backup.
465468
If null, this means that the boot volume was created from an image.
466469
467470
@@ -474,7 +477,7 @@ def source_details(self):
474477
def source_details(self, source_details):
475478
"""
476479
Sets the source_details of this BootVolume.
477-
The boot volume source, either an existing boot volume in the same Availability Domain or a boot volume backup.
480+
The boot volume source, either an existing boot volume in the same availability domain or a boot volume backup.
478481
If null, this means that the boot volume was created from an image.
479482
480483

src/oci/core/models/boot_volume_attachment.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
class BootVolumeAttachment(object):
1111
"""
1212
Represents an attachment between a boot volume and an instance.
13+
14+
**Warning:** Oracle recommends that you avoid using any confidential information when you
15+
supply string values using the API.
1316
"""
1417

1518
#: A constant which can be used with the lifecycle_state property of a BootVolumeAttachment.
@@ -103,7 +106,7 @@ def __init__(self, **kwargs):
103106
def availability_domain(self):
104107
"""
105108
**[Required]** Gets the availability_domain of this BootVolumeAttachment.
106-
The Availability Domain of an instance.
109+
The availability domain of an instance.
107110
108111
Example: `Uocm:PHX-AD-1`
109112
@@ -117,7 +120,7 @@ def availability_domain(self):
117120
def availability_domain(self, availability_domain):
118121
"""
119122
Sets the availability_domain of this BootVolumeAttachment.
120-
The Availability Domain of an instance.
123+
The availability domain of an instance.
121124
122125
Example: `Uocm:PHX-AD-1`
123126

src/oci/core/models/boot_volume_backup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ class BootVolumeBackup(object):
1717
who needs to write policies to give users access, see `Getting Started with
1818
Policies`__.
1919
20+
**Warning:** Oracle recommends that you avoid using any confidential information when you
21+
supply string values using the API.
22+
2023
__ https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumebackups.htm
2124
__ https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm
2225
"""

0 commit comments

Comments
 (0)