1+ from typing import Optional , List , Any
2+ from .. import serde
3+ from .bucket_basic import Owner
4+
5+ class CloudBoxProperties (serde .Model ):
6+ """
7+ Information about cloud box.
8+ """
9+
10+ _attribute_map = {
11+ 'id' : {'tag' : 'xml' , 'rename' : 'ID' },
12+ 'name' : {'tag' : 'xml' , 'rename' : 'Name' },
13+ 'region' : {'tag' : 'xml' , 'rename' : 'Region' },
14+ 'control_endpoint' : {'tag' : 'xml' , 'rename' : 'ControlEndpoint' },
15+ 'data_endpoint' : {'tag' : 'xml' , 'rename' : 'DataEndpoint' },
16+ 'alias' : {'tag' : 'xml' , 'rename' : 'Alias' },
17+ }
18+
19+ _xml_map = {
20+ "name" : "CloudBox"
21+ }
22+
23+ def __init__ (
24+ self ,
25+ id : Optional [str ] = None ,
26+ name : Optional [str ] = None ,
27+ region : Optional [str ] = None ,
28+ control_endpoint : Optional [str ] = None ,
29+ data_endpoint : Optional [str ] = None ,
30+ alias : Optional [str ] = None ,
31+ ** kwargs : Any
32+ ) -> None :
33+ """
34+ Args:
35+ id (str, optional): Cloud Box ID.
36+ name (str, optional): Cloud Box Name.
37+ region (str, optional): Regions supported by Cloud Box.
38+ control_endpoint (str, optional): control endpoint.
39+ data_endpoint (str, optional): data endpoint.
40+ alias (str, optional): The alias of the access point.
41+ """
42+ super ().__init__ (** kwargs )
43+ self .id = id
44+ self .name = name
45+ self .region = region
46+ self .control_endpoint = control_endpoint
47+ self .data_endpoint = data_endpoint
48+ self .alias = alias
49+
50+
51+
52+ class ListCloudBoxesRequest (serde .RequestModel ):
53+ """
54+ The request for the ListCloudBoxes operation.
55+ """
56+
57+ _attribute_map = {
58+ "marker" : {"tag" : "input" , "position" : "query" , "rename" : "marker" },
59+ "max_keys" : {"tag" : "input" , "position" : "query" , "rename" : "max-keys" , "type" : "int" },
60+ "prefix" : {"tag" : "input" , "position" : "query" , "rename" : "prefix" },
61+ }
62+
63+ def __init__ (
64+ self ,
65+ marker : Optional [str ] = None ,
66+ max_keys : Optional [int ] = None ,
67+ prefix : Optional [str ] = None ,
68+ ** kwargs : Any
69+ ) -> None :
70+ """
71+ Args:
72+ marker (str, optional): The name of the bucket from which the list operation begins.
73+ max_keys (int, optional): The maximum number of buckets that can be returned in the single query. Valid values: 1 to 1000.
74+ prefix (str, optional): The prefix that the names of returned buckets must contain.
75+ """
76+ super ().__init__ (** kwargs )
77+ self .marker = marker
78+ self .max_keys = max_keys
79+ self .prefix = prefix
80+
81+
82+ class ListCloudBoxesResult (serde .ResultModel ):
83+ """
84+ The result for the ListCloudBoxes operation.
85+ """
86+
87+ _attribute_map = {
88+ 'prefix' : {'tag' : 'xml' , 'rename' : 'Prefix' },
89+ 'marker' : {'tag' : 'xml' , 'rename' : 'Marker' },
90+ 'max_keys' : {'tag' : 'xml' , 'rename' : 'MaxKeys' },
91+ 'is_truncated' : {'tag' : 'xml' , 'rename' : 'IsTruncated' , 'type' : 'bool' },
92+ 'next_marker' : {'tag' : 'xml' , 'rename' : 'NextMarker' },
93+ "owner" : {"tag" : "xml" , "rename" : "Owner" , "type" : "Owner" },
94+ "cloud_boxes" : {"tag" : "xml" , "rename" : "CloudBoxes/CloudBox" , "type" : "[CloudBoxProperties]" },
95+ }
96+
97+ _xml_map = {
98+ 'name' : 'ListCloudBoxResult'
99+ }
100+
101+ _dependency_map = {
102+ "Owner" : {"new" : lambda : Owner ()},
103+ "CloudBoxProperties" : {"new" : lambda : CloudBoxProperties ()},
104+ }
105+
106+ def __init__ (
107+ self ,
108+ prefix : Optional [str ] = None ,
109+ marker : Optional [str ] = None ,
110+ max_keys : Optional [int ] = None ,
111+ is_truncated : Optional [bool ] = None ,
112+ next_marker : Optional [str ] = None ,
113+ owner : Optional [Owner ] = None ,
114+ cloud_boxes : Optional [List [CloudBoxProperties ]] = None ,
115+ ** kwargs : Any
116+ ) -> None :
117+ """
118+ Args:
119+ prefix (str, optional): The prefix that the names of returned buckets must contain.
120+ marker (str, optional): The name of the bucket from which the list operation begins.
121+ max_keys (int, optional): The maximum number of buckets that can be returned in the single query. Valid values: 1 to 1000.
122+ is_truncated (str, bool): Indicates whether the returned list is truncated. Valid values: * true: indicates that not all results are returned. * false: indicates that all results are returned.
123+ next_marker (str, optional): The marker for the next ListBuckets request, which can be used to return the remaining results.
124+ owner (Owner, optional): The container that stores information about the object owner.
125+ cloud_boxes ([CloudBoxProperties], optional): The container that stores information about cloud box bucket.
126+ """
127+ super ().__init__ (** kwargs )
128+ self .prefix = prefix
129+ self .marker = marker
130+ self .max_keys = max_keys
131+ self .is_truncated = is_truncated
132+ self .next_marker = next_marker
133+ self .owner = owner
134+ self .cloud_boxes = cloud_boxes
0 commit comments