Skip to content

Commit

Permalink
Support Latest APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 5, 2023
1 parent 4ca5f4c commit 229cafe
Show file tree
Hide file tree
Showing 20 changed files with 261 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-alb/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-05 Version: 1.0.16
- Support Latest APIs.

2023-07-24 Version: 1.0.15
- Support Latest APIs.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-alb/aliyunsdkalb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.15'
__version__ = '1.0.16'
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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
from aliyunsdkalb.endpoint import endpoint_data

class CancelShiftLoadBalancerZonesRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Alb', '2020-06-16', 'CancelShiftLoadBalancerZones','alb')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_ClientToken(self): # String
return self.get_query_params().get('ClientToken')

def set_ClientToken(self, ClientToken): # String
self.add_query_param('ClientToken', ClientToken)
def get_DryRun(self): # Boolean
return self.get_query_params().get('DryRun')

def set_DryRun(self, DryRun): # Boolean
self.add_query_param('DryRun', DryRun)
def get_ZoneMappings(self): # Array
return self.get_query_params().get('ZoneMappings')

def set_ZoneMappings(self, ZoneMappings): # Array
for index1, value1 in enumerate(ZoneMappings):
if value1.get('VSwitchId') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.VSwitchId', value1.get('VSwitchId'))
if value1.get('ZoneId') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.ZoneId', value1.get('ZoneId'))
def get_LoadBalancerId(self): # String
return self.get_query_params().get('LoadBalancerId')

def set_LoadBalancerId(self, LoadBalancerId): # String
self.add_query_param('LoadBalancerId', LoadBalancerId)
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ def get_ResourceGroupId(self): # String

def set_ResourceGroupId(self, ResourceGroupId): # String
self.add_query_param('ResourceGroupId', ResourceGroupId)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_DryRun(self): # Boolean
return self.get_query_params().get('DryRun')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ def get_HealthCheckPath(self): # String

def set_HealthCheckPath(self, HealthCheckPath): # String
self.add_query_param('HealthCheckPath', HealthCheckPath)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_HealthCheckCodes(self): # Array
return self.get_query_params().get('HealthCheckCodes')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ def get_Http2Enabled(self): # Boolean

def set_Http2Enabled(self, Http2Enabled): # Boolean
self.add_query_param('Http2Enabled', Http2Enabled)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_DefaultActions(self): # Array
return self.get_query_params().get('DefaultActions')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ def get_AddressType(self): # String

def set_AddressType(self, AddressType): # String
self.add_query_param('AddressType', AddressType)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_AddressAllocatedMode(self): # String
return self.get_query_params().get('AddressAllocatedMode')

Expand All @@ -109,6 +118,8 @@ def set_ZoneMappings(self, ZoneMappings): # Array
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.ZoneId', value1.get('ZoneId'))
if value1.get('AllocationId') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.AllocationId', value1.get('AllocationId'))
if value1.get('IntranetAddress') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.IntranetAddress', value1.get('IntranetAddress'))
def get_VpcId(self): # String
return self.get_query_params().get('VpcId')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ def get_ListenerId(self): # String

def set_ListenerId(self, ListenerId): # String
self.add_query_param('ListenerId', ListenerId)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_Direction(self): # String
return self.get_query_params().get('Direction')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ def set_Rules(self, Rules): # Array
self.add_query_param('Rules.' + str(index1 + 1) + '.RuleConditions.' + str(index2 + 1) + '.ResponseHeaderConfig.Key', value2.get('ResponseHeaderConfig').get('Key'))
if value1.get('RuleName') is not None:
self.add_query_param('Rules.' + str(index1 + 1) + '.RuleName', value1.get('RuleName'))
if value1.get('Tag') is not None:
for index2, value2 in enumerate(value1.get('Tag')):
if value2.get('Value') is not None:
self.add_query_param('Rules.' + str(index1 + 1) + '.Tag.' + str(index2 + 1) + '.Value', value2.get('Value'))
if value2.get('Key') is not None:
self.add_query_param('Rules.' + str(index1 + 1) + '.Tag.' + str(index2 + 1) + '.Key', value2.get('Key'))
if value1.get('Priority') is not None:
self.add_query_param('Rules.' + str(index1 + 1) + '.Priority', value1.get('Priority'))
if value1.get('RuleActions') is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ def get_Ciphers(self): # Array
def set_Ciphers(self, Ciphers): # Array
for index1, value1 in enumerate(Ciphers):
self.add_query_param('Ciphers.' + str(index1 + 1), value1)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_TLSVersions(self): # Array
return self.get_query_params().get('TLSVersions')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,25 @@ def get_Protocol(self): # String

def set_Protocol(self, Protocol): # String
self.add_query_param('Protocol', Protocol)
def get_UpstreamKeepaliveEnabled(self): # Boolean
return self.get_query_params().get('UpstreamKeepaliveEnabled')

def set_UpstreamKeepaliveEnabled(self, UpstreamKeepaliveEnabled): # Boolean
self.add_query_param('UpstreamKeepaliveEnabled', UpstreamKeepaliveEnabled)
def get_ServiceName(self): # String
return self.get_query_params().get('ServiceName')

def set_ServiceName(self, ServiceName): # String
self.add_query_param('ServiceName', ServiceName)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_StickySessionConfig(self): # Struct
return self.get_query_params().get('StickySessionConfig')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ def get_NextToken(self): # String

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_AclNames(self): # Array
return self.get_query_params().get('AclNames')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ def get_NextToken(self): # String

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_HealthCheckTemplateNames(self): # Array
return self.get_query_params().get('HealthCheckTemplateNames')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ def get_NextToken(self): # String

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_ListenerProtocol(self): # String
return self.get_query_params().get('ListenerProtocol')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ def get_LoadBalancerIds(self): # Array
def set_LoadBalancerIds(self, LoadBalancerIds): # Array
for index1, value1 in enumerate(LoadBalancerIds):
self.add_query_param('LoadBalancerIds.' + str(index1 + 1), value1)
def get_AddressIpVersion(self): # String
return self.get_query_params().get('AddressIpVersion')

def set_AddressIpVersion(self, AddressIpVersion): # String
self.add_query_param('AddressIpVersion', AddressIpVersion)
def get_ResourceGroupId(self): # String
return self.get_query_params().get('ResourceGroupId')

Expand All @@ -58,6 +63,11 @@ def get_LoadBalancerBussinessStatus(self): # String

def set_LoadBalancerBussinessStatus(self, LoadBalancerBussinessStatus): # String
self.add_query_param('LoadBalancerBussinessStatus', LoadBalancerBussinessStatus)
def get_DNSName(self): # String
return self.get_query_params().get('DNSName')

def set_DNSName(self, DNSName): # String
self.add_query_param('DNSName', DNSName)
def get_AddressType(self): # String
return self.get_query_params().get('AddressType')

Expand Down Expand Up @@ -93,6 +103,11 @@ def get_ZoneId(self): # String

def set_ZoneId(self, ZoneId): # String
self.add_query_param('ZoneId', ZoneId)
def get_Ipv6AddressType(self): # String
return self.get_query_params().get('Ipv6AddressType')

def set_Ipv6AddressType(self, Ipv6AddressType): # String
self.add_query_param('Ipv6AddressType', Ipv6AddressType)
def get_PayType(self): # String
return self.get_query_params().get('PayType')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ def get_NextToken(self): # String

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_Direction(self): # String
return self.get_query_params().get('Direction')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ def get_NextToken(self): # String

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_Tag(self): # Array
return self.get_query_params().get('Tag')

def set_Tag(self, Tag): # Array
for index1, value1 in enumerate(Tag):
if value1.get('Value') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
if value1.get('Key') is not None:
self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
def get_SecurityPolicyIds(self): # Array
return self.get_query_params().get('SecurityPolicyIds')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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
from aliyunsdkalb.endpoint import endpoint_data

class StartShiftLoadBalancerZonesRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Alb', '2020-06-16', 'StartShiftLoadBalancerZones','alb')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_ClientToken(self): # String
return self.get_query_params().get('ClientToken')

def set_ClientToken(self, ClientToken): # String
self.add_query_param('ClientToken', ClientToken)
def get_DryRun(self): # Boolean
return self.get_query_params().get('DryRun')

def set_DryRun(self, DryRun): # Boolean
self.add_query_param('DryRun', DryRun)
def get_ZoneMappings(self): # Array
return self.get_query_params().get('ZoneMappings')

def set_ZoneMappings(self, ZoneMappings): # Array
for index1, value1 in enumerate(ZoneMappings):
if value1.get('VSwitchId') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.VSwitchId', value1.get('VSwitchId'))
if value1.get('ZoneId') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.ZoneId', value1.get('ZoneId'))
def get_LoadBalancerId(self): # String
return self.get_query_params().get('LoadBalancerId')

def set_LoadBalancerId(self, LoadBalancerId): # String
self.add_query_param('LoadBalancerId', LoadBalancerId)
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def set_ZoneMappings(self, ZoneMappings): # Array
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.ZoneId', value1.get('ZoneId'))
if value1.get('AllocationId') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.AllocationId', value1.get('AllocationId'))
if value1.get('IntranetAddress') is not None:
self.add_query_param('ZoneMappings.' + str(index1 + 1) + '.IntranetAddress', value1.get('IntranetAddress'))
def get_LoadBalancerId(self): # String
return self.get_query_params().get('LoadBalancerId')

Expand Down
Loading

0 comments on commit 229cafe

Please sign in to comment.