Skip to content

Commit dc61e22

Browse files
authored
Releasing version 2.2.4
Releasing version 2.2.4
2 parents c27f689 + 16dbf8d commit dc61e22

File tree

65 files changed

+1796
-865
lines changed

Some content is hidden

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

65 files changed

+1796
-865
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ 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.4 - 2019-03-26
9+
====================
10+
11+
Added
12+
-----
13+
* Support for glob patterns and exclusions for object lifecycle management in the Object Storage service
14+
* Documentation enhancements and corrections for traffic management in the DNS service
15+
716
====================
817
2.2.3 - 2019-03-19
918
====================

docs/api/object_storage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Object Storage
3434
oci.object_storage.models.ObjectLifecycleRule
3535
oci.object_storage.models.ObjectNameFilter
3636
oci.object_storage.models.ObjectSummary
37+
oci.object_storage.models.PatternDetails
3738
oci.object_storage.models.PreauthenticatedRequest
3839
oci.object_storage.models.PreauthenticatedRequestSummary
3940
oci.object_storage.models.PutObjectLifecyclePolicyDetails
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PatternDetails
2+
==============
3+
4+
.. currentmodule:: oci.object_storage.models
5+
6+
.. autoclass:: PatternDetails
7+
:show-inheritance:
8+
:special-members: __init__
9+
:members:
10+
:undoc-members:
11+
:inherited-members:

src/oci/config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ def from_file(file_location=DEFAULT_LOCATION, profile_name=DEFAULT_PROFILE):
9292

9393
def validate_config(config, **kwargs):
9494
if 'signer' in kwargs:
95-
# The InstancePrincipalsSecurityTokenSigner is self-sufficient and doesn't need to read
96-
# the normally-required keys in the config
97-
if isinstance(kwargs['signer'], signers.InstancePrincipalsSecurityTokenSigner):
95+
# InstancePrincipalsSecurityTokenSigner and SecurityTokenSigner are
96+
# self-sufficient and do not need to read the normally-required keys
97+
# in the config
98+
if isinstance(kwargs['signer'], signers.InstancePrincipalsSecurityTokenSigner) or isinstance(kwargs['signer'], signers.SecurityTokenSigner):
9899
return
99100

100101
"""Raises ValueError if required fields are missing or malformed."""

src/oci/dns/dns_client.py

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ def __init__(self, config, **kwargs):
8282

8383
def create_steering_policy(self, create_steering_policy_details, **kwargs):
8484
"""
85-
Creates a new steering policy in the specified compartment.
85+
Creates a new steering policy in the specified compartment. For more information on
86+
creating policies with templates, see `Traffic Management API Guide`__.
87+
88+
__ https://docs.cloud.oracle.com/iaas/Content/TrafficManagement/Concepts/trafficmanagementapi.htm
8689
8790
8891
:param CreateSteeringPolicyDetails create_steering_policy_details: (required)
@@ -151,9 +154,12 @@ def create_steering_policy(self, create_steering_policy_details, **kwargs):
151154

152155
def create_steering_policy_attachment(self, create_steering_policy_attachment_details, **kwargs):
153156
"""
154-
Creates a new attachment between a steering policy and a domain.
157+
Creates a new attachment between a steering policy and a domain, giving the
158+
policy permission to answer queries for the specified domain. A steering policy must
159+
be attached to a domain for the policy to answer DNS queries for that domain.
160+
155161
For the purposes of access control, the attachment is automatically placed
156-
into the same compartment as the containing zone of the domain.
162+
into the same compartment as the domain's zone.
157163
158164
159165
:param CreateSteeringPolicyAttachmentDetails create_steering_policy_attachment_details: (required)
@@ -493,7 +499,8 @@ def delete_steering_policy(self, steering_policy_id, **kwargs):
493499
"""
494500
Deletes the specified steering policy.
495501
A `204` response indicates that the delete has been successful.
496-
Deletion will fail if the policy is attached to any zones.
502+
Deletion will fail if the policy is attached to any zones. To detach a
503+
policy from a zone, see `DeleteSteeringPolicyAttachment`.
497504
498505
499506
:param str steering_policy_id: (required)
@@ -1470,7 +1477,7 @@ def list_steering_policies(self, compartment_id, **kwargs):
14701477
14711478
:param str health_check_monitor_id: (optional)
14721479
Search by health check monitor OCID.
1473-
Will match any resource whose health check monitor id matches the provided value.
1480+
Will match any resource whose health check monitor ID matches the provided value.
14741481
14751482
:param datetime time_created_greater_than_or_equal_to: (optional)
14761483
An `RFC 3339`__ timestamp that states
@@ -1485,7 +1492,7 @@ def list_steering_policies(self, compartment_id, **kwargs):
14851492
__ https://www.ietf.org/rfc/rfc3339.txt
14861493
14871494
:param str template: (optional)
1488-
Search by template type.
1495+
Search by steering template type.
14891496
Will match any resource whose template type matches the provided value.
14901497
14911498
:param str lifecycle_state: (optional)
@@ -1494,7 +1501,7 @@ def list_steering_policies(self, compartment_id, **kwargs):
14941501
Allowed values are: "ACTIVE", "CREATING", "DELETED", "DELETING"
14951502
14961503
:param str sort_by: (optional)
1497-
The field by which to sort steering policies.
1504+
The field by which to sort steering policies. If unspecified, defaults to `timeCreated`.
14981505
14991506
Allowed values are: "displayName", "timeCreated", "template"
15001507
@@ -1623,11 +1630,11 @@ def list_steering_policy_attachments(self, compartment_id, **kwargs):
16231630
16241631
:param str steering_policy_id: (optional)
16251632
Search by steering policy OCID.
1626-
Will match any resource whose steering policy id matches the provided value.
1633+
Will match any resource whose steering policy ID matches the provided value.
16271634
16281635
:param str zone_id: (optional)
16291636
Search by zone OCID.
1630-
Will match any resource whose zone id matches the provided value.
1637+
Will match any resource whose zone ID matches the provided value.
16311638
16321639
:param str domain: (optional)
16331640
Search by domain.
@@ -1655,7 +1662,7 @@ def list_steering_policy_attachments(self, compartment_id, **kwargs):
16551662
Allowed values are: "CREATING", "ACTIVE", "DELETING"
16561663
16571664
:param str sort_by: (optional)
1658-
The field by which to sort steering policy attachments.
1665+
The field by which to sort steering policy attachments. If unspecified, defaults to `timeCreated`.
16591666
16601667
Allowed values are: "displayName", "timeCreated", "domainName"
16611668
@@ -1923,7 +1930,10 @@ def list_zones(self, compartment_id, **kwargs):
19231930

19241931
def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_details, **kwargs):
19251932
"""
1926-
Updates records in the specified zone at a domain. You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function.
1933+
Updates records in the specified zone at a domain. You can update
1934+
one record or all records for the specified zone depending on the changes
1935+
provided in the request body. You can also add or remove records using this
1936+
function.
19271937
19281938
19291939
:param str zone_name_or_id: (required)
@@ -2460,7 +2470,7 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, *
24602470

24612471
def update_steering_policy(self, steering_policy_id, update_steering_policy_details, **kwargs):
24622472
"""
2463-
Updates the specified steering policy with your new information.
2473+
Updates the configuration of the specified steering policy.
24642474
24652475
24662476
:param str steering_policy_id: (required)

src/oci/dns/models/create_steering_policy_attachment_details.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
class CreateSteeringPolicyAttachmentDetails(object):
1111
"""
1212
The body for defining an attachment between a steering policy and a domain.
13-
An attachment occludes all records at its domain that are of a covered rtype, constructing
14-
DNS responses from its steering policy rather than from those domain records.
15-
The attachment will cover every rtype that matches the rtype of an answer in its policy, and
16-
will cover all address rtypes (e.g., A and AAAA) if the policy includes at least one CNAME
17-
answer.
18-
A domain can have at most one attachment covering any given rtype.
13+
14+
15+
**Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
1916
"""
2017

2118
def __init__(self, **kwargs):
@@ -136,7 +133,7 @@ def display_name(self):
136133
"""
137134
Gets the display_name of this CreateSteeringPolicyAttachmentDetails.
138135
A user-friendly name for the steering policy attachment.
139-
Does not have to be unique, and it's changeable.
136+
Does not have to be unique and can be changed.
140137
Avoid entering confidential information.
141138
142139
@@ -150,7 +147,7 @@ def display_name(self, display_name):
150147
"""
151148
Sets the display_name of this CreateSteeringPolicyAttachmentDetails.
152149
A user-friendly name for the steering policy attachment.
153-
Does not have to be unique, and it's changeable.
150+
Does not have to be unique and can be changed.
154151
Avoid entering confidential information.
155152
156153

0 commit comments

Comments
 (0)