Skip to content

Commit 18606d6

Browse files
committed
CR SDK Auto Released By shenshi,Version:3.0.1
发布日志: 1, Update Dependency
1 parent dfeab98 commit 18606d6

File tree

71 files changed

+1851
-25
lines changed

Some content is hidden

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

71 files changed

+1851
-25
lines changed

aliyun-python-sdk-cr/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-03-14 Version: 3.0.1
2+
1, Update Dependency
3+
14
2018-05-23 Version: 3.0.0
25
1, Add namespace related interface.
36
2, Add repository related interface.

aliyun-python-sdk-cr/MANIFEST.in

100755100644
File mode changed.

aliyun-python-sdk-cr/README.rst

100755100644
File mode changed.

aliyun-python-sdk-cr/aliyunsdkcr/__init__.py

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.0"
1+
__version__ = "3.0.1"

aliyun-python-sdk-cr/aliyunsdkcr/request/__init__.py

100755100644
File mode changed.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
class CancelRepoBuildRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'cr', '2016-06-07', 'CancelRepoBuild','cr')
25+
self.set_uri_pattern('/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel')
26+
self.set_method('POST')
27+
28+
def get_RepoNamespace(self):
29+
return self.get_path_params().get('RepoNamespace')
30+
31+
def set_RepoNamespace(self,RepoNamespace):
32+
self.add_path_param('RepoNamespace',RepoNamespace)
33+
34+
def get_RepoName(self):
35+
return self.get_path_params().get('RepoName')
36+
37+
def set_RepoName(self,RepoName):
38+
self.add_path_param('RepoName',RepoName)
39+
40+
def get_BuildId(self):
41+
return self.get_path_params().get('BuildId')
42+
43+
def set_BuildId(self,BuildId):
44+
self.add_path_param('BuildId',BuildId)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
class CreateCollectionRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'cr', '2016-06-07', 'CreateCollection','cr')
25+
self.set_uri_pattern('/collections')
26+
self.set_method('PUT')
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
class CreateNamespaceAuthorizationRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'cr', '2016-06-07', 'CreateNamespaceAuthorization','cr')
25+
self.set_uri_pattern('/namespace/[Namespace]/authorizations')
26+
self.set_method('PUT')
27+
28+
def get_Namespace(self):
29+
return self.get_path_params().get('Namespace')
30+
31+
def set_Namespace(self,Namespace):
32+
self.add_path_param('Namespace',Namespace)

aliyun-python-sdk-cr/aliyunsdkcr/request/v20160607/CreateNamespaceRequest.py

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
class CreateNamespaceRequest(RoaRequest):
2222

2323
def __init__(self):
24-
RoaRequest.__init__(self, 'cr', '2016-06-07', 'CreateNamespace')
24+
RoaRequest.__init__(self, 'cr', '2016-06-07', 'CreateNamespace','cr')
2525
self.set_uri_pattern('/namespace')
2626
self.set_method('PUT')
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
class CreateRepoAuthorizationRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'cr', '2016-06-07', 'CreateRepoAuthorization','cr')
25+
self.set_uri_pattern('/repos/[RepoNamespace]/[RepoName]/authorizations')
26+
self.set_method('PUT')
27+
28+
def get_RepoNamespace(self):
29+
return self.get_path_params().get('RepoNamespace')
30+
31+
def set_RepoNamespace(self,RepoNamespace):
32+
self.add_path_param('RepoNamespace',RepoNamespace)
33+
34+
def get_RepoName(self):
35+
return self.get_path_params().get('RepoName')
36+
37+
def set_RepoName(self,RepoName):
38+
self.add_path_param('RepoName',RepoName)

0 commit comments

Comments
 (0)