Skip to content

Commit

Permalink
adding dmsv2 sdk proxy (#418)
Browse files Browse the repository at this point in the history
adding dmsv2 sdk proxy

Reviewed-by: Anton Sidelnikov
  • Loading branch information
vladimirhasko authored Mar 8, 2024
1 parent 8dfe40d commit a725981
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
4 changes: 4 additions & 0 deletions otcextensions/sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
'endpoint_service_type': 'dms',
'append_project_id': True,
},
'dmsv2': {
'service_type': 'dmsv2',
'endpoint_service_type': 'dmsv2',
},
'dns': {
'service_type': 'dns',
'replace_system': True,
Expand Down
4 changes: 1 addition & 3 deletions otcextensions/sdk/dms/dms_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
from openstack import service_description

from otcextensions.sdk.dms.v1 import _proxy as _proxy_v1
from otcextensions.sdk.dms.v2 import _proxy as _proxy_v2


class DmsService(service_description.ServiceDescription):
"""The DMS service."""

supported_versions = {
'1': _proxy_v1.Proxy,
'2': _proxy_v2.Proxy
'1': _proxy_v1.Proxy
}
File renamed without changes.
22 changes: 22 additions & 0 deletions otcextensions/sdk/dmsv2/dmsv2_service.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from openstack import service_description

from otcextensions.sdk.dmsv2.v2 import _proxy as _proxy_v2


class Dmsv2Service(service_description.ServiceDescription):
"""The DMS v2 service."""

supported_versions = {
'2': _proxy_v2.Proxy
}
Empty file.
File renamed without changes.

0 comments on commit a725981

Please sign in to comment.