pulp-python-client 3.11.2__py3-none-any.whl → 3.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulp-python-client might be problematic. Click here for more details.

@@ -0,0 +1,122 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from pulpcore.client.pulp_python.configuration import Configuration
20
+
21
+
22
+ class MyPermissionsResponse(object):
23
+ """NOTE: This class is auto generated by OpenAPI Generator.
24
+ Ref: https://openapi-generator.tech
25
+
26
+ Do not edit the class manually.
27
+ """
28
+
29
+ """
30
+ Attributes:
31
+ openapi_types (dict): The key is attribute name
32
+ and the value is attribute type.
33
+ attribute_map (dict): The key is attribute name
34
+ and the value is json key in definition.
35
+ """
36
+ openapi_types = {
37
+ 'permissions': 'list[str]'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'permissions': 'permissions'
42
+ }
43
+
44
+ def __init__(self, permissions=None, local_vars_configuration=None): # noqa: E501
45
+ """MyPermissionsResponse - a model defined in OpenAPI""" # noqa: E501
46
+ if local_vars_configuration is None:
47
+ local_vars_configuration = Configuration()
48
+ self.local_vars_configuration = local_vars_configuration
49
+
50
+ self._permissions = None
51
+ self.discriminator = None
52
+
53
+ self.permissions = permissions
54
+
55
+ @property
56
+ def permissions(self):
57
+ """Gets the permissions of this MyPermissionsResponse. # noqa: E501
58
+
59
+
60
+ :return: The permissions of this MyPermissionsResponse. # noqa: E501
61
+ :rtype: list[str]
62
+ """
63
+ return self._permissions
64
+
65
+ @permissions.setter
66
+ def permissions(self, permissions):
67
+ """Sets the permissions of this MyPermissionsResponse.
68
+
69
+
70
+ :param permissions: The permissions of this MyPermissionsResponse. # noqa: E501
71
+ :type: list[str]
72
+ """
73
+ if self.local_vars_configuration.client_side_validation and permissions is None: # noqa: E501
74
+ raise ValueError("Invalid value for `permissions`, must not be `None`") # noqa: E501
75
+
76
+ self._permissions = permissions
77
+
78
+ def to_dict(self):
79
+ """Returns the model properties as a dict"""
80
+ result = {}
81
+
82
+ for attr, _ in six.iteritems(self.openapi_types):
83
+ value = getattr(self, attr)
84
+ if isinstance(value, list):
85
+ result[attr] = list(map(
86
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
87
+ value
88
+ ))
89
+ elif hasattr(value, "to_dict"):
90
+ result[attr] = value.to_dict()
91
+ elif isinstance(value, dict):
92
+ result[attr] = dict(map(
93
+ lambda item: (item[0], item[1].to_dict())
94
+ if hasattr(item[1], "to_dict") else item,
95
+ value.items()
96
+ ))
97
+ else:
98
+ result[attr] = value
99
+
100
+ return result
101
+
102
+ def to_str(self):
103
+ """Returns the string representation of the model"""
104
+ return pprint.pformat(self.to_dict())
105
+
106
+ def __repr__(self):
107
+ """For `print` and `pprint`"""
108
+ return self.to_str()
109
+
110
+ def __eq__(self, other):
111
+ """Returns true if both objects are equal"""
112
+ if not isinstance(other, MyPermissionsResponse):
113
+ return False
114
+
115
+ return self.to_dict() == other.to_dict()
116
+
117
+ def __ne__(self, other):
118
+ """Returns true if both objects are not equal"""
119
+ if not isinstance(other, MyPermissionsResponse):
120
+ return True
121
+
122
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,177 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from pulpcore.client.pulp_python.configuration import Configuration
20
+
21
+
22
+ class NestedRole(object):
23
+ """NOTE: This class is auto generated by OpenAPI Generator.
24
+ Ref: https://openapi-generator.tech
25
+
26
+ Do not edit the class manually.
27
+ """
28
+
29
+ """
30
+ Attributes:
31
+ openapi_types (dict): The key is attribute name
32
+ and the value is attribute type.
33
+ attribute_map (dict): The key is attribute name
34
+ and the value is json key in definition.
35
+ """
36
+ openapi_types = {
37
+ 'users': 'list[str]',
38
+ 'groups': 'list[str]',
39
+ 'role': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'users': 'users',
44
+ 'groups': 'groups',
45
+ 'role': 'role'
46
+ }
47
+
48
+ def __init__(self, users=[], groups=[], role=None, local_vars_configuration=None): # noqa: E501
49
+ """NestedRole - a model defined in OpenAPI""" # noqa: E501
50
+ if local_vars_configuration is None:
51
+ local_vars_configuration = Configuration()
52
+ self.local_vars_configuration = local_vars_configuration
53
+
54
+ self._users = None
55
+ self._groups = None
56
+ self._role = None
57
+ self.discriminator = None
58
+
59
+ if users is not None:
60
+ self.users = users
61
+ if groups is not None:
62
+ self.groups = groups
63
+ self.role = role
64
+
65
+ @property
66
+ def users(self):
67
+ """Gets the users of this NestedRole. # noqa: E501
68
+
69
+
70
+ :return: The users of this NestedRole. # noqa: E501
71
+ :rtype: list[str]
72
+ """
73
+ return self._users
74
+
75
+ @users.setter
76
+ def users(self, users):
77
+ """Sets the users of this NestedRole.
78
+
79
+
80
+ :param users: The users of this NestedRole. # noqa: E501
81
+ :type: list[str]
82
+ """
83
+
84
+ self._users = users
85
+
86
+ @property
87
+ def groups(self):
88
+ """Gets the groups of this NestedRole. # noqa: E501
89
+
90
+
91
+ :return: The groups of this NestedRole. # noqa: E501
92
+ :rtype: list[str]
93
+ """
94
+ return self._groups
95
+
96
+ @groups.setter
97
+ def groups(self, groups):
98
+ """Sets the groups of this NestedRole.
99
+
100
+
101
+ :param groups: The groups of this NestedRole. # noqa: E501
102
+ :type: list[str]
103
+ """
104
+
105
+ self._groups = groups
106
+
107
+ @property
108
+ def role(self):
109
+ """Gets the role of this NestedRole. # noqa: E501
110
+
111
+
112
+ :return: The role of this NestedRole. # noqa: E501
113
+ :rtype: str
114
+ """
115
+ return self._role
116
+
117
+ @role.setter
118
+ def role(self, role):
119
+ """Sets the role of this NestedRole.
120
+
121
+
122
+ :param role: The role of this NestedRole. # noqa: E501
123
+ :type: str
124
+ """
125
+ if self.local_vars_configuration.client_side_validation and role is None: # noqa: E501
126
+ raise ValueError("Invalid value for `role`, must not be `None`") # noqa: E501
127
+ if (self.local_vars_configuration.client_side_validation and
128
+ role is not None and len(role) < 1):
129
+ raise ValueError("Invalid value for `role`, length must be greater than or equal to `1`") # noqa: E501
130
+
131
+ self._role = role
132
+
133
+ def to_dict(self):
134
+ """Returns the model properties as a dict"""
135
+ result = {}
136
+
137
+ for attr, _ in six.iteritems(self.openapi_types):
138
+ value = getattr(self, attr)
139
+ if isinstance(value, list):
140
+ result[attr] = list(map(
141
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
142
+ value
143
+ ))
144
+ elif hasattr(value, "to_dict"):
145
+ result[attr] = value.to_dict()
146
+ elif isinstance(value, dict):
147
+ result[attr] = dict(map(
148
+ lambda item: (item[0], item[1].to_dict())
149
+ if hasattr(item[1], "to_dict") else item,
150
+ value.items()
151
+ ))
152
+ else:
153
+ result[attr] = value
154
+
155
+ return result
156
+
157
+ def to_str(self):
158
+ """Returns the string representation of the model"""
159
+ return pprint.pformat(self.to_dict())
160
+
161
+ def __repr__(self):
162
+ """For `print` and `pprint`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, NestedRole):
168
+ return False
169
+
170
+ return self.to_dict() == other.to_dict()
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ if not isinstance(other, NestedRole):
175
+ return True
176
+
177
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,174 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from pulpcore.client.pulp_python.configuration import Configuration
20
+
21
+
22
+ class NestedRoleResponse(object):
23
+ """NOTE: This class is auto generated by OpenAPI Generator.
24
+ Ref: https://openapi-generator.tech
25
+
26
+ Do not edit the class manually.
27
+ """
28
+
29
+ """
30
+ Attributes:
31
+ openapi_types (dict): The key is attribute name
32
+ and the value is attribute type.
33
+ attribute_map (dict): The key is attribute name
34
+ and the value is json key in definition.
35
+ """
36
+ openapi_types = {
37
+ 'users': 'list[str]',
38
+ 'groups': 'list[str]',
39
+ 'role': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'users': 'users',
44
+ 'groups': 'groups',
45
+ 'role': 'role'
46
+ }
47
+
48
+ def __init__(self, users=[], groups=[], role=None, local_vars_configuration=None): # noqa: E501
49
+ """NestedRoleResponse - a model defined in OpenAPI""" # noqa: E501
50
+ if local_vars_configuration is None:
51
+ local_vars_configuration = Configuration()
52
+ self.local_vars_configuration = local_vars_configuration
53
+
54
+ self._users = None
55
+ self._groups = None
56
+ self._role = None
57
+ self.discriminator = None
58
+
59
+ if users is not None:
60
+ self.users = users
61
+ if groups is not None:
62
+ self.groups = groups
63
+ self.role = role
64
+
65
+ @property
66
+ def users(self):
67
+ """Gets the users of this NestedRoleResponse. # noqa: E501
68
+
69
+
70
+ :return: The users of this NestedRoleResponse. # noqa: E501
71
+ :rtype: list[str]
72
+ """
73
+ return self._users
74
+
75
+ @users.setter
76
+ def users(self, users):
77
+ """Sets the users of this NestedRoleResponse.
78
+
79
+
80
+ :param users: The users of this NestedRoleResponse. # noqa: E501
81
+ :type: list[str]
82
+ """
83
+
84
+ self._users = users
85
+
86
+ @property
87
+ def groups(self):
88
+ """Gets the groups of this NestedRoleResponse. # noqa: E501
89
+
90
+
91
+ :return: The groups of this NestedRoleResponse. # noqa: E501
92
+ :rtype: list[str]
93
+ """
94
+ return self._groups
95
+
96
+ @groups.setter
97
+ def groups(self, groups):
98
+ """Sets the groups of this NestedRoleResponse.
99
+
100
+
101
+ :param groups: The groups of this NestedRoleResponse. # noqa: E501
102
+ :type: list[str]
103
+ """
104
+
105
+ self._groups = groups
106
+
107
+ @property
108
+ def role(self):
109
+ """Gets the role of this NestedRoleResponse. # noqa: E501
110
+
111
+
112
+ :return: The role of this NestedRoleResponse. # noqa: E501
113
+ :rtype: str
114
+ """
115
+ return self._role
116
+
117
+ @role.setter
118
+ def role(self, role):
119
+ """Sets the role of this NestedRoleResponse.
120
+
121
+
122
+ :param role: The role of this NestedRoleResponse. # noqa: E501
123
+ :type: str
124
+ """
125
+ if self.local_vars_configuration.client_side_validation and role is None: # noqa: E501
126
+ raise ValueError("Invalid value for `role`, must not be `None`") # noqa: E501
127
+
128
+ self._role = role
129
+
130
+ def to_dict(self):
131
+ """Returns the model properties as a dict"""
132
+ result = {}
133
+
134
+ for attr, _ in six.iteritems(self.openapi_types):
135
+ value = getattr(self, attr)
136
+ if isinstance(value, list):
137
+ result[attr] = list(map(
138
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
139
+ value
140
+ ))
141
+ elif hasattr(value, "to_dict"):
142
+ result[attr] = value.to_dict()
143
+ elif isinstance(value, dict):
144
+ result[attr] = dict(map(
145
+ lambda item: (item[0], item[1].to_dict())
146
+ if hasattr(item[1], "to_dict") else item,
147
+ value.items()
148
+ ))
149
+ else:
150
+ result[attr] = value
151
+
152
+ return result
153
+
154
+ def to_str(self):
155
+ """Returns the string representation of the model"""
156
+ return pprint.pformat(self.to_dict())
157
+
158
+ def __repr__(self):
159
+ """For `print` and `pprint`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, NestedRoleResponse):
165
+ return False
166
+
167
+ return self.to_dict() == other.to_dict()
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ if not isinstance(other, NestedRoleResponse):
172
+ return True
173
+
174
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,122 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from pulpcore.client.pulp_python.configuration import Configuration
20
+
21
+
22
+ class ObjectRolesResponse(object):
23
+ """NOTE: This class is auto generated by OpenAPI Generator.
24
+ Ref: https://openapi-generator.tech
25
+
26
+ Do not edit the class manually.
27
+ """
28
+
29
+ """
30
+ Attributes:
31
+ openapi_types (dict): The key is attribute name
32
+ and the value is attribute type.
33
+ attribute_map (dict): The key is attribute name
34
+ and the value is json key in definition.
35
+ """
36
+ openapi_types = {
37
+ 'roles': 'list[NestedRoleResponse]'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'roles': 'roles'
42
+ }
43
+
44
+ def __init__(self, roles=None, local_vars_configuration=None): # noqa: E501
45
+ """ObjectRolesResponse - a model defined in OpenAPI""" # noqa: E501
46
+ if local_vars_configuration is None:
47
+ local_vars_configuration = Configuration()
48
+ self.local_vars_configuration = local_vars_configuration
49
+
50
+ self._roles = None
51
+ self.discriminator = None
52
+
53
+ self.roles = roles
54
+
55
+ @property
56
+ def roles(self):
57
+ """Gets the roles of this ObjectRolesResponse. # noqa: E501
58
+
59
+
60
+ :return: The roles of this ObjectRolesResponse. # noqa: E501
61
+ :rtype: list[NestedRoleResponse]
62
+ """
63
+ return self._roles
64
+
65
+ @roles.setter
66
+ def roles(self, roles):
67
+ """Sets the roles of this ObjectRolesResponse.
68
+
69
+
70
+ :param roles: The roles of this ObjectRolesResponse. # noqa: E501
71
+ :type: list[NestedRoleResponse]
72
+ """
73
+ if self.local_vars_configuration.client_side_validation and roles is None: # noqa: E501
74
+ raise ValueError("Invalid value for `roles`, must not be `None`") # noqa: E501
75
+
76
+ self._roles = roles
77
+
78
+ def to_dict(self):
79
+ """Returns the model properties as a dict"""
80
+ result = {}
81
+
82
+ for attr, _ in six.iteritems(self.openapi_types):
83
+ value = getattr(self, attr)
84
+ if isinstance(value, list):
85
+ result[attr] = list(map(
86
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
87
+ value
88
+ ))
89
+ elif hasattr(value, "to_dict"):
90
+ result[attr] = value.to_dict()
91
+ elif isinstance(value, dict):
92
+ result[attr] = dict(map(
93
+ lambda item: (item[0], item[1].to_dict())
94
+ if hasattr(item[1], "to_dict") else item,
95
+ value.items()
96
+ ))
97
+ else:
98
+ result[attr] = value
99
+
100
+ return result
101
+
102
+ def to_str(self):
103
+ """Returns the string representation of the model"""
104
+ return pprint.pformat(self.to_dict())
105
+
106
+ def __repr__(self):
107
+ """For `print` and `pprint`"""
108
+ return self.to_str()
109
+
110
+ def __eq__(self, other):
111
+ """Returns true if both objects are equal"""
112
+ if not isinstance(other, ObjectRolesResponse):
113
+ return False
114
+
115
+ return self.to_dict() == other.to_dict()
116
+
117
+ def __ne__(self, other):
118
+ """Returns true if both objects are not equal"""
119
+ if not isinstance(other, ObjectRolesResponse):
120
+ return True
121
+
122
+ return self.to_dict() != other.to_dict()
@@ -78,8 +78,6 @@ class PackageUploadTaskResponse(object):
78
78
  :param session: The session of this PackageUploadTaskResponse. # noqa: E501
79
79
  :type: str
80
80
  """
81
- if self.local_vars_configuration.client_side_validation and session is None: # noqa: E501
82
- raise ValueError("Invalid value for `session`, must not be `None`") # noqa: E501
83
81
 
84
82
  self._session = session
85
83
 
@@ -124,8 +122,6 @@ class PackageUploadTaskResponse(object):
124
122
  :param task_start_time: The task_start_time of this PackageUploadTaskResponse. # noqa: E501
125
123
  :type: datetime
126
124
  """
127
- if self.local_vars_configuration.client_side_validation and task_start_time is None: # noqa: E501
128
- raise ValueError("Invalid value for `task_start_time`, must not be `None`") # noqa: E501
129
125
 
130
126
  self._task_start_time = task_start_time
131
127