From 50c32de0273dd63e2758248ba3668fccb6ef1b00 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 8 Oct 2024 07:58:47 +0000 Subject: [PATCH] Generated 2022-12-01 for ResourceCenter. --- .../ChangeLog.txt | 3 ++ .../aliyunsdkresourcecenter/__init__.py | 2 +- .../AssociateDefaultFilterRequest.py | 32 +++++++++++++ .../request/v20221201/CreateFilterRequest.py | 37 ++++++++++++++ .../v20221201/CreateSavedQueryRequest.py | 43 +++++++++++++++++ .../request/v20221201/DeleteFilterRequest.py | 32 +++++++++++++ .../v20221201/DeleteSavedQueryRequest.py | 33 +++++++++++++ .../DisassociateDefaultFilterRequest.py | 27 +++++++++++ .../ExecuteMultiAccountSQLQueryRequest.py | 38 +++++++++++++++ .../v20221201/ExecuteSQLQueryRequest.py | 38 +++++++++++++++ .../v20221201/GetExampleQueryRequest.py | 33 +++++++++++++ ...ultiAccountResourceConfigurationRequest.py | 20 ++++---- .../request/v20221201/GetSavedQueryRequest.py | 33 +++++++++++++ .../v20221201/ListExampleQueriesRequest.py | 38 +++++++++++++++ .../request/v20221201/ListFiltersRequest.py | 27 +++++++++++ .../ListMultiAccountResourceGroupsRequest.py | 10 ++-- .../v20221201/ListSavedQueriesRequest.py | 38 +++++++++++++++ .../request/v20221201/UpdateFilterRequest.py | 37 ++++++++++++++ .../v20221201/UpdateSavedQueryRequest.py | 48 +++++++++++++++++++ 19 files changed, 553 insertions(+), 16 deletions(-) create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/AssociateDefaultFilterRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateFilterRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateSavedQueryRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteFilterRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteSavedQueryRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DisassociateDefaultFilterRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteMultiAccountSQLQueryRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteSQLQueryRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetExampleQueryRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetSavedQueryRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListExampleQueriesRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListFiltersRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListSavedQueriesRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateFilterRequest.py create mode 100644 aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateSavedQueryRequest.py diff --git a/aliyun-python-sdk-resourcecenter/ChangeLog.txt b/aliyun-python-sdk-resourcecenter/ChangeLog.txt index 9154bcf435..7a697f1b33 100644 --- a/aliyun-python-sdk-resourcecenter/ChangeLog.txt +++ b/aliyun-python-sdk-resourcecenter/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-10-08 Version: 1.0.4 +- Generated 2022-12-01 for `ResourceCenter`. + 2023-06-09 Version: 1.0.3 - Supported GetResourceCounts API. diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/__init__.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/__init__.py index 77139f6ade..7ce86c962b 100644 --- a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/__init__.py +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/__init__.py @@ -1 +1 @@ -__version__ = '1.0.3' \ No newline at end of file +__version__ = '1.0.4' \ No newline at end of file diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/AssociateDefaultFilterRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/AssociateDefaultFilterRequest.py new file mode 100644 index 0000000000..d59c68928b --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/AssociateDefaultFilterRequest.py @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class AssociateDefaultFilterRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'AssociateDefaultFilter') + self.set_method('POST') + + def get_FilterName(self): # String + return self.get_query_params().get('FilterName') + + def set_FilterName(self, FilterName): # String + self.add_query_param('FilterName', FilterName) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateFilterRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateFilterRequest.py new file mode 100644 index 0000000000..6a30514113 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateFilterRequest.py @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class CreateFilterRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'CreateFilter') + self.set_method('POST') + + def get_FilterName(self): # String + return self.get_query_params().get('FilterName') + + def set_FilterName(self, FilterName): # String + self.add_query_param('FilterName', FilterName) + def get_FilterConfiguration(self): # String + return self.get_query_params().get('FilterConfiguration') + + def set_FilterConfiguration(self, FilterConfiguration): # String + self.add_query_param('FilterConfiguration', FilterConfiguration) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateSavedQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateSavedQueryRequest.py new file mode 100644 index 0000000000..d9dbcb7108 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/CreateSavedQueryRequest.py @@ -0,0 +1,43 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class CreateSavedQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'CreateSavedQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_Expression(self): # String + return self.get_query_params().get('Expression') + + def set_Expression(self, Expression): # String + self.add_query_param('Expression', Expression) + def get_Description(self): # String + return self.get_query_params().get('Description') + + def set_Description(self, Description): # String + self.add_query_param('Description', Description) + def get_Name(self): # String + return self.get_query_params().get('Name') + + def set_Name(self, Name): # String + self.add_query_param('Name', Name) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteFilterRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteFilterRequest.py new file mode 100644 index 0000000000..086ceacbab --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteFilterRequest.py @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class DeleteFilterRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'DeleteFilter') + self.set_method('POST') + + def get_FilterName(self): # String + return self.get_query_params().get('FilterName') + + def set_FilterName(self, FilterName): # String + self.add_query_param('FilterName', FilterName) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteSavedQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteSavedQueryRequest.py new file mode 100644 index 0000000000..90fd0f1555 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DeleteSavedQueryRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class DeleteSavedQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'DeleteSavedQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_QueryId(self): # String + return self.get_query_params().get('QueryId') + + def set_QueryId(self, QueryId): # String + self.add_query_param('QueryId', QueryId) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DisassociateDefaultFilterRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DisassociateDefaultFilterRequest.py new file mode 100644 index 0000000000..02ccc3d5ef --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/DisassociateDefaultFilterRequest.py @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class DisassociateDefaultFilterRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'DisassociateDefaultFilter') + self.set_method('POST') + diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteMultiAccountSQLQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteMultiAccountSQLQueryRequest.py new file mode 100644 index 0000000000..cdcd7af47d --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteMultiAccountSQLQueryRequest.py @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class ExecuteMultiAccountSQLQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'ExecuteMultiAccountSQLQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_Expression(self): # String + return self.get_query_params().get('Expression') + + def set_Expression(self, Expression): # String + self.add_query_param('Expression', Expression) + def get_Scope(self): # String + return self.get_query_params().get('Scope') + + def set_Scope(self, Scope): # String + self.add_query_param('Scope', Scope) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteSQLQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteSQLQueryRequest.py new file mode 100644 index 0000000000..5649344eae --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ExecuteSQLQueryRequest.py @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class ExecuteSQLQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'ExecuteSQLQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_Expression(self): # String + return self.get_query_params().get('Expression') + + def set_Expression(self, Expression): # String + self.add_query_param('Expression', Expression) + def get_Scope(self): # String + return self.get_query_params().get('Scope') + + def set_Scope(self, Scope): # String + self.add_query_param('Scope', Scope) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetExampleQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetExampleQueryRequest.py new file mode 100644 index 0000000000..92e0927e14 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetExampleQueryRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class GetExampleQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetExampleQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_QueryId(self): # String + return self.get_query_params().get('QueryId') + + def set_QueryId(self, QueryId): # String + self.add_query_param('QueryId', QueryId) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetMultiAccountResourceConfigurationRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetMultiAccountResourceConfigurationRequest.py index 2b407e446a..4e6716d473 100644 --- a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetMultiAccountResourceConfigurationRequest.py +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetMultiAccountResourceConfigurationRequest.py @@ -25,16 +25,6 @@ def __init__(self): RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetMultiAccountResourceConfiguration') self.set_method('POST') - def get_ResourceId(self): # String - return self.get_query_params().get('ResourceId') - - def set_ResourceId(self, ResourceId): # String - self.add_query_param('ResourceId', ResourceId) - def get_ResourceType(self): # String - return self.get_query_params().get('ResourceType') - - def set_ResourceType(self, ResourceType): # String - self.add_query_param('ResourceType', ResourceType) def get_AccountId(self): # String return self.get_query_params().get('AccountId') @@ -45,3 +35,13 @@ def get_ResourceRegionId(self): # String def set_ResourceRegionId(self, ResourceRegionId): # String self.add_query_param('ResourceRegionId', ResourceRegionId) + def get_ResourceId(self): # String + return self.get_query_params().get('ResourceId') + + def set_ResourceId(self, ResourceId): # String + self.add_query_param('ResourceId', ResourceId) + def get_ResourceType(self): # String + return self.get_query_params().get('ResourceType') + + def set_ResourceType(self, ResourceType): # String + self.add_query_param('ResourceType', ResourceType) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetSavedQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetSavedQueryRequest.py new file mode 100644 index 0000000000..03945b62a1 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/GetSavedQueryRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class GetSavedQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'GetSavedQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_QueryId(self): # String + return self.get_query_params().get('QueryId') + + def set_QueryId(self, QueryId): # String + self.add_query_param('QueryId', QueryId) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListExampleQueriesRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListExampleQueriesRequest.py new file mode 100644 index 0000000000..55dcc9f95b --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListExampleQueriesRequest.py @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class ListExampleQueriesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'ListExampleQueries') + self.set_protocol_type('https') + self.set_method('POST') + + def get_NextToken(self): # String + return self.get_query_params().get('NextToken') + + def set_NextToken(self, NextToken): # String + self.add_query_param('NextToken', NextToken) + def get_MaxResults(self): # String + return self.get_query_params().get('MaxResults') + + def set_MaxResults(self, MaxResults): # String + self.add_query_param('MaxResults', MaxResults) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListFiltersRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListFiltersRequest.py new file mode 100644 index 0000000000..a63b7d81a1 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListFiltersRequest.py @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class ListFiltersRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'ListFilters') + self.set_method('POST') + diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListMultiAccountResourceGroupsRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListMultiAccountResourceGroupsRequest.py index 96c3ed1c1e..bb3fa1a113 100644 --- a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListMultiAccountResourceGroupsRequest.py +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListMultiAccountResourceGroupsRequest.py @@ -30,17 +30,17 @@ def get_AccountId(self): # String def set_AccountId(self, AccountId): # String self.add_query_param('AccountId', AccountId) + def get_NextToken(self): # String + return self.get_query_params().get('NextToken') + + def set_NextToken(self, NextToken): # String + self.add_query_param('NextToken', NextToken) def get_ResourceGroupIdss(self): # RepeatList return self.get_query_params().get('ResourceGroupIds') def set_ResourceGroupIdss(self, ResourceGroupIds): # RepeatList for depth1 in range(len(ResourceGroupIds)): self.add_query_param('ResourceGroupIds.' + str(depth1 + 1), ResourceGroupIds[depth1]) - def get_NextToken(self): # String - return self.get_query_params().get('NextToken') - - def set_NextToken(self, NextToken): # String - self.add_query_param('NextToken', NextToken) def get_MaxResults(self): # Integer return self.get_query_params().get('MaxResults') diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListSavedQueriesRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListSavedQueriesRequest.py new file mode 100644 index 0000000000..989e08318e --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/ListSavedQueriesRequest.py @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class ListSavedQueriesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'ListSavedQueries') + self.set_protocol_type('https') + self.set_method('POST') + + def get_NextToken(self): # String + return self.get_query_params().get('NextToken') + + def set_NextToken(self, NextToken): # String + self.add_query_param('NextToken', NextToken) + def get_MaxResults(self): # String + return self.get_query_params().get('MaxResults') + + def set_MaxResults(self, MaxResults): # String + self.add_query_param('MaxResults', MaxResults) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateFilterRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateFilterRequest.py new file mode 100644 index 0000000000..0e311617c4 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateFilterRequest.py @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class UpdateFilterRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'UpdateFilter') + self.set_method('POST') + + def get_FilterName(self): # String + return self.get_query_params().get('FilterName') + + def set_FilterName(self, FilterName): # String + self.add_query_param('FilterName', FilterName) + def get_FilterConfiguration(self): # String + return self.get_query_params().get('FilterConfiguration') + + def set_FilterConfiguration(self, FilterConfiguration): # String + self.add_query_param('FilterConfiguration', FilterConfiguration) diff --git a/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateSavedQueryRequest.py b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateSavedQueryRequest.py new file mode 100644 index 0000000000..d5d2bfb1b1 --- /dev/null +++ b/aliyun-python-sdk-resourcecenter/aliyunsdkresourcecenter/request/v20221201/UpdateSavedQueryRequest.py @@ -0,0 +1,48 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 aliyunsdkcore.request import RpcRequest + +class UpdateSavedQueryRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'ResourceCenter', '2022-12-01', 'UpdateSavedQuery') + self.set_protocol_type('https') + self.set_method('POST') + + def get_Expression(self): # String + return self.get_query_params().get('Expression') + + def set_Expression(self, Expression): # String + self.add_query_param('Expression', Expression) + def get_Description(self): # String + return self.get_query_params().get('Description') + + def set_Description(self, Description): # String + self.add_query_param('Description', Description) + def get_QueryId(self): # String + return self.get_query_params().get('QueryId') + + def set_QueryId(self, QueryId): # String + self.add_query_param('QueryId', QueryId) + def get_Name(self): # String + return self.get_query_params().get('Name') + + def set_Name(self, Name): # String + self.add_query_param('Name', Name)