Skip to content

Commit f82decc

Browse files
committed
Generated 2022-12-01 for ResourceCenter.
1 parent 1863341 commit f82decc

14 files changed

+584
-1
lines changed

aliyun-python-sdk-resourcecenter/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-20 Version: 1.0.7
2+
- Generated 2022-12-01 for `ResourceCenter`.
3+
14
2025-04-02 Version: 1.0.6
25
- Generated 2022-12-01 for `ResourceCenter`.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.6'
1+
__version__ = '1.0.7'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class CreateDeliveryChannelRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'CreateDeliveryChannel')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelDescription(self): # String
30+
return self.get_query_params().get('DeliveryChannelDescription')
31+
32+
def set_DeliveryChannelDescription(self, DeliveryChannelDescription): # String
33+
self.add_query_param('DeliveryChannelDescription', DeliveryChannelDescription)
34+
def get_ResourceChangeDelivery(self): # Struct
35+
return self.get_query_params().get('ResourceChangeDelivery')
36+
37+
def set_ResourceChangeDelivery(self, ResourceChangeDelivery): # Struct
38+
if ResourceChangeDelivery.get('TargetType') is not None:
39+
self.add_query_param('ResourceChangeDelivery.TargetType', ResourceChangeDelivery.get('TargetType'))
40+
if ResourceChangeDelivery.get('SlsProperties') is not None:
41+
if ResourceChangeDelivery.get('SlsProperties').get('OversizedDataOssTargetArn') is not None:
42+
self.add_query_param('ResourceChangeDelivery.SlsProperties.OversizedDataOssTargetArn', ResourceChangeDelivery.get('SlsProperties').get('OversizedDataOssTargetArn'))
43+
if ResourceChangeDelivery.get('TargetArn') is not None:
44+
self.add_query_param('ResourceChangeDelivery.TargetArn', ResourceChangeDelivery.get('TargetArn'))
45+
def get_DeliveryChannelName(self): # String
46+
return self.get_query_params().get('DeliveryChannelName')
47+
48+
def set_DeliveryChannelName(self, DeliveryChannelName): # String
49+
self.add_query_param('DeliveryChannelName', DeliveryChannelName)
50+
def get_DeliveryChannelFilter(self): # Struct
51+
return self.get_query_params().get('DeliveryChannelFilter')
52+
53+
def set_DeliveryChannelFilter(self, DeliveryChannelFilter): # Struct
54+
if DeliveryChannelFilter.get('ResourceTypes') is not None:
55+
for index1, value1 in enumerate(DeliveryChannelFilter.get('ResourceTypes')):
56+
self.add_query_param('DeliveryChannelFilter.ResourceTypes.' + str(index1 + 1), value1)
57+
def get_ResourceSnapshotDelivery(self): # Struct
58+
return self.get_query_params().get('ResourceSnapshotDelivery')
59+
60+
def set_ResourceSnapshotDelivery(self, ResourceSnapshotDelivery): # Struct
61+
if ResourceSnapshotDelivery.get('TargetType') is not None:
62+
self.add_query_param('ResourceSnapshotDelivery.TargetType', ResourceSnapshotDelivery.get('TargetType'))
63+
if ResourceSnapshotDelivery.get('DeliveryTime') is not None:
64+
self.add_query_param('ResourceSnapshotDelivery.DeliveryTime', ResourceSnapshotDelivery.get('DeliveryTime'))
65+
if ResourceSnapshotDelivery.get('CustomExpression') is not None:
66+
self.add_query_param('ResourceSnapshotDelivery.CustomExpression', ResourceSnapshotDelivery.get('CustomExpression'))
67+
if ResourceSnapshotDelivery.get('SlsProperties') is not None:
68+
if ResourceSnapshotDelivery.get('SlsProperties').get('OversizedDataOssTargetArn') is not None:
69+
self.add_query_param('ResourceSnapshotDelivery.SlsProperties.OversizedDataOssTargetArn', ResourceSnapshotDelivery.get('SlsProperties').get('OversizedDataOssTargetArn'))
70+
if ResourceSnapshotDelivery.get('TargetArn') is not None:
71+
self.add_query_param('ResourceSnapshotDelivery.TargetArn', ResourceSnapshotDelivery.get('TargetArn'))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class CreateMultiAccountDeliveryChannelRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'CreateMultiAccountDeliveryChannel')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelDescription(self): # String
30+
return self.get_query_params().get('DeliveryChannelDescription')
31+
32+
def set_DeliveryChannelDescription(self, DeliveryChannelDescription): # String
33+
self.add_query_param('DeliveryChannelDescription', DeliveryChannelDescription)
34+
def get_ResourceChangeDelivery(self): # Struct
35+
return self.get_query_params().get('ResourceChangeDelivery')
36+
37+
def set_ResourceChangeDelivery(self, ResourceChangeDelivery): # Struct
38+
if ResourceChangeDelivery.get('TargetType') is not None:
39+
self.add_query_param('ResourceChangeDelivery.TargetType', ResourceChangeDelivery.get('TargetType'))
40+
if ResourceChangeDelivery.get('SlsProperties') is not None:
41+
if ResourceChangeDelivery.get('SlsProperties').get('OversizedDataOssTargetArn') is not None:
42+
self.add_query_param('ResourceChangeDelivery.SlsProperties.OversizedDataOssTargetArn', ResourceChangeDelivery.get('SlsProperties').get('OversizedDataOssTargetArn'))
43+
if ResourceChangeDelivery.get('TargetArn') is not None:
44+
self.add_query_param('ResourceChangeDelivery.TargetArn', ResourceChangeDelivery.get('TargetArn'))
45+
def get_DeliveryChannelName(self): # String
46+
return self.get_query_params().get('DeliveryChannelName')
47+
48+
def set_DeliveryChannelName(self, DeliveryChannelName): # String
49+
self.add_query_param('DeliveryChannelName', DeliveryChannelName)
50+
def get_DeliveryChannelFilter(self): # Struct
51+
return self.get_query_params().get('DeliveryChannelFilter')
52+
53+
def set_DeliveryChannelFilter(self, DeliveryChannelFilter): # Struct
54+
if DeliveryChannelFilter.get('ResourceTypes') is not None:
55+
for index1, value1 in enumerate(DeliveryChannelFilter.get('ResourceTypes')):
56+
self.add_query_param('DeliveryChannelFilter.ResourceTypes.' + str(index1 + 1), value1)
57+
if DeliveryChannelFilter.get('AccountScopes') is not None:
58+
for index1, value1 in enumerate(DeliveryChannelFilter.get('AccountScopes')):
59+
self.add_query_param('DeliveryChannelFilter.AccountScopes.' + str(index1 + 1), value1)
60+
def get_ResourceSnapshotDelivery(self): # Struct
61+
return self.get_query_params().get('ResourceSnapshotDelivery')
62+
63+
def set_ResourceSnapshotDelivery(self, ResourceSnapshotDelivery): # Struct
64+
if ResourceSnapshotDelivery.get('TargetType') is not None:
65+
self.add_query_param('ResourceSnapshotDelivery.TargetType', ResourceSnapshotDelivery.get('TargetType'))
66+
if ResourceSnapshotDelivery.get('DeliveryTime') is not None:
67+
self.add_query_param('ResourceSnapshotDelivery.DeliveryTime', ResourceSnapshotDelivery.get('DeliveryTime'))
68+
if ResourceSnapshotDelivery.get('CustomExpression') is not None:
69+
self.add_query_param('ResourceSnapshotDelivery.CustomExpression', ResourceSnapshotDelivery.get('CustomExpression'))
70+
if ResourceSnapshotDelivery.get('SlsProperties') is not None:
71+
if ResourceSnapshotDelivery.get('SlsProperties').get('OversizedDataOssTargetArn') is not None:
72+
self.add_query_param('ResourceSnapshotDelivery.SlsProperties.OversizedDataOssTargetArn', ResourceSnapshotDelivery.get('SlsProperties').get('OversizedDataOssTargetArn'))
73+
if ResourceSnapshotDelivery.get('TargetArn') is not None:
74+
self.add_query_param('ResourceSnapshotDelivery.TargetArn', ResourceSnapshotDelivery.get('TargetArn'))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class DeleteDeliveryChannelRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'DeleteDeliveryChannel')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelId(self): # String
30+
return self.get_query_params().get('DeliveryChannelId')
31+
32+
def set_DeliveryChannelId(self, DeliveryChannelId): # String
33+
self.add_query_param('DeliveryChannelId', DeliveryChannelId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class DeleteMultiAccountDeliveryChannelRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'DeleteMultiAccountDeliveryChannel')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelId(self): # String
30+
return self.get_query_params().get('DeliveryChannelId')
31+
32+
def set_DeliveryChannelId(self, DeliveryChannelId): # String
33+
self.add_query_param('DeliveryChannelId', DeliveryChannelId)
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class GetDeliveryChannelRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetDeliveryChannel')
26+
self.set_method('POST')
27+
28+
def get_DeliveryChannelId(self): # String
29+
return self.get_query_params().get('DeliveryChannelId')
30+
31+
def set_DeliveryChannelId(self, DeliveryChannelId): # String
32+
self.add_query_param('DeliveryChannelId', DeliveryChannelId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class GetDeliveryChannelStatisticsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetDeliveryChannelStatistics')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelId(self): # String
30+
return self.get_query_params().get('DeliveryChannelId')
31+
32+
def set_DeliveryChannelId(self, DeliveryChannelId): # String
33+
self.add_query_param('DeliveryChannelId', DeliveryChannelId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class GetMultiAccountDeliveryChannelRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetMultiAccountDeliveryChannel')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelId(self): # String
30+
return self.get_query_params().get('DeliveryChannelId')
31+
32+
def set_DeliveryChannelId(self, DeliveryChannelId): # String
33+
self.add_query_param('DeliveryChannelId', DeliveryChannelId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class GetMultiAccountDeliveryChannelStatisticsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetMultiAccountDeliveryChannelStatistics')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DeliveryChannelId(self): # String
30+
return self.get_query_params().get('DeliveryChannelId')
31+
32+
def set_DeliveryChannelId(self, DeliveryChannelId): # String
33+
self.add_query_param('DeliveryChannelId', DeliveryChannelId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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 RpcRequest
21+
22+
class ListDeliveryChannelsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'ListDeliveryChannels')
26+
self.set_method('POST')
27+
28+
def get_NextToken(self): # String
29+
return self.get_query_params().get('NextToken')
30+
31+
def set_NextToken(self, NextToken): # String
32+
self.add_query_param('NextToken', NextToken)
33+
def get_MaxResults(self): # Integer
34+
return self.get_query_params().get('MaxResults')
35+
36+
def set_MaxResults(self, MaxResults): # Integer
37+
self.add_query_param('MaxResults', MaxResults)

0 commit comments

Comments
 (0)