Skip to content

Commit 0bb9992

Browse files
authored
Merge branch 'master' into transit-sdk-integration-tests
2 parents 6fe877b + bcc871e commit 0bb9992

File tree

14 files changed

+312
-87
lines changed

14 files changed

+312
-87
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.12.0
2+
current_version = 0.13.0
33
commit = True
44
message = Update version {current_version} -> {new_version}
55

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [0.13.0](https://github.com/IBM/networking-python-sdk/compare/v0.12.0...v0.13.0) (2021-11-16)
2+
3+
4+
### Features
5+
6+
* **location opt:** added cr location as opt ([1ef4cf9](https://github.com/IBM/networking-python-sdk/commit/1ef4cf96ef2d092089717b76c51b3c4dab91ffe3))
7+
18
# [0.12.0](https://github.com/IBM/networking-python-sdk/compare/v0.11.0...v0.12.0) (2021-10-05)
29

310

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![codecov](https://codecov.io/gh/IBM/networking-python-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/IBM/networking-python-sdk)
88
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
99

10-
# IBM Cloud Networking Services Python SDK Version 0.12.0
10+
# IBM Cloud Networking Services Python SDK Version 0.13.0
1111

1212
Python client library to interact with various [IBM Cloud Networking Service APIs](https://cloud.ibm.com/apidocs?category=network).
1313

@@ -100,13 +100,13 @@ IBM Cloud services:
100100
To install, use `pip` or `easy_install`:
101101

102102
```bash
103-
pip install --upgrade "ibm-cloud-networking-services==0.12.0"
103+
pip install --upgrade "ibm-cloud-networking-services==0.13.0"
104104
```
105105

106106
or
107107

108108
```bash
109-
easy_install --upgrade "ibm-cloud-networking-servies==0.12.0"
109+
easy_install --upgrade "ibm-cloud-networking-servies==0.13.0"
110110
```
111111

112112
## Using the SDK

cis.env.enc

0 Bytes
Binary file not shown.

dns.env.enc

0 Bytes
Binary file not shown.

ibm_cloud_networking_services/dns_svcs_v1.py

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# IBM OpenAPI SDK Code Generator Version: 3.32.0-4c6a3129-20210514-210323
17+
# IBM OpenAPI SDK Code Generator Version: 3.29.1-b338fb38-20210313-010605
1818

1919
"""
2020
DNS Services API
@@ -2296,6 +2296,65 @@ def update_custom_resolver(self,
22962296
response = self.send(request)
22972297
return response
22982298

2299+
2300+
def update_cr_locations_order(self,
2301+
instance_id: str,
2302+
resolver_id: str,
2303+
*,
2304+
locations: List[str] = None,
2305+
x_correlation_id: str = None,
2306+
**kwargs
2307+
) -> DetailedResponse:
2308+
"""
2309+
Update the locations order of a custom resolver.
2310+
2311+
Update the locations order of a custom resolver.
2312+
2313+
:param str instance_id: The unique identifier of a service instance.
2314+
:param str resolver_id: The unique identifier of a custom resolver.
2315+
:param List[str] locations: (optional) Array of custom resolver location
2316+
ID.
2317+
:param str x_correlation_id: (optional) Uniquely identifying a request.
2318+
:param dict headers: A `dict` containing the request headers
2319+
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
2320+
:rtype: DetailedResponse with `dict` result representing a `CustomResolver` object
2321+
"""
2322+
2323+
if instance_id is None:
2324+
raise ValueError('instance_id must be provided')
2325+
if resolver_id is None:
2326+
raise ValueError('resolver_id must be provided')
2327+
headers = {
2328+
'X-Correlation-ID': x_correlation_id
2329+
}
2330+
sdk_headers = get_sdk_headers(service_name=self.DEFAULT_SERVICE_NAME,
2331+
service_version='V1',
2332+
operation_id='update_cr_locations_order')
2333+
headers.update(sdk_headers)
2334+
2335+
data = {
2336+
'locations': locations
2337+
}
2338+
data = {k: v for (k, v) in data.items() if v is not None}
2339+
data = json.dumps(data)
2340+
headers['content-type'] = 'application/json'
2341+
2342+
if 'headers' in kwargs:
2343+
headers.update(kwargs.get('headers'))
2344+
headers['Accept'] = 'application/json'
2345+
2346+
path_param_keys = ['instance_id', 'resolver_id']
2347+
path_param_values = self.encode_path_vars(instance_id, resolver_id)
2348+
path_param_dict = dict(zip(path_param_keys, path_param_values))
2349+
url = '/instances/{instance_id}/custom_resolvers/{resolver_id}/locations_order'.format(**path_param_dict)
2350+
request = self.prepare_request(method='PUT',
2351+
url=url,
2352+
headers=headers,
2353+
data=data)
2354+
2355+
response = self.send(request)
2356+
return response
2357+
22992358
#########################
23002359
# Custom Resolver Locations
23012360
#########################
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""
22
Version of cloud_networking_services
33
"""
4-
__version__ = '0.12.0'
4+
__version__ = '0.13.0'

package-lock.json

Lines changed: 84 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)