pulp-ansible-client 0.25.0__py3-none-any.whl → 0.25.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulp-ansible-client
3
- Version: 0.25.0
3
+ Version: 0.25.1
4
4
  Summary: Pulp 3 API
5
5
  Home-page:
6
6
  Author: Pulp Team
@@ -1,9 +1,9 @@
1
1
  pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
2
2
  pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
3
- pulpcore/client/pulp_ansible/__init__.py,sha256=rL2IpjnWjJb920npTdheHatCTiahGki3IKhBNkZnYpQ,18618
4
- pulpcore/client/pulp_ansible/api_client.py,sha256=VZCwm8ul4ZO3zqtz7m5_U5X7EtYQ85ZtN6_SOtKFbck,27537
3
+ pulpcore/client/pulp_ansible/__init__.py,sha256=bS7xO-X5Ko3mHsgYBc0F_V13qLdwBKpXqy2HGyPWpnQ,18618
4
+ pulpcore/client/pulp_ansible/api_client.py,sha256=yyp7muHvU6GwOHaFxlFz2GsmINZ_GnoDg-0OxdMz69g,27537
5
5
  pulpcore/client/pulp_ansible/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
6
- pulpcore/client/pulp_ansible/configuration.py,sha256=vX4yYbgLDiGFTk09wD_iy_aldZB4Ku2-o2MdbkiE1gw,19253
6
+ pulpcore/client/pulp_ansible/configuration.py,sha256=BaFqKLoY1QO5vONvM69TTLsjAfqzPjVr7u2YyHxF0JQ,19253
7
7
  pulpcore/client/pulp_ansible/exceptions.py,sha256=voqdIkPGpfNSUF9SsFqERflJMVs-uYFH60fd1rcsz6Y,5957
8
8
  pulpcore/client/pulp_ansible/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pulpcore/client/pulp_ansible/rest.py,sha256=wuSZsOkRN8obNqo5msUNwT49JK2-X5-EdeaTc-RA0N0,9411
@@ -16,7 +16,7 @@ pulpcore/client/pulp_ansible/api/collection_import_api.py,sha256=Yu88wNzepj1M4yv
16
16
  pulpcore/client/pulp_ansible/api/content_collection_deprecations_api.py,sha256=Bw49Cny5XLcMS6jYKeAKkLdz_LfcW9eGWISxwDlMSM8,72910
17
17
  pulpcore/client/pulp_ansible/api/content_collection_marks_api.py,sha256=c03nfcpDxO4XTTuZVP8LpzZfH-hl6mYV1E-2xcre37c,78779
18
18
  pulpcore/client/pulp_ansible/api/content_collection_signatures_api.py,sha256=tISj5c56Zr-bIYf8raYpietyprAkAKuOrcqo2v9Wg28,87381
19
- pulpcore/client/pulp_ansible/api/content_collection_versions_api.py,sha256=whH5j0Z5uMct_o2sE5XTpWAfYSonnKJ6lyd1leRkl1k,95418
19
+ pulpcore/client/pulp_ansible/api/content_collection_versions_api.py,sha256=u2uxV7aP05EWrndTaiNN4K5Qucf48WWV9ZbGRM_guxQ,95418
20
20
  pulpcore/client/pulp_ansible/api/content_namespaces_api.py,sha256=xKKzHy2AjSG8dq48tOfYOI2s2ULPTZ8Q0yNmeko_7_8,100564
21
21
  pulpcore/client/pulp_ansible/api/content_roles_api.py,sha256=nXdLVPNcR2Kdec8J6Z7ChJkhK5VUxAWgEzhmn_nPckQ,76655
22
22
  pulpcore/client/pulp_ansible/api/distributions_ansible_api.py,sha256=N27yZlDJ1fOOw8df8g4NPk56ZCyzXTtX_SSJEXYfvv8,170235
@@ -80,18 +80,18 @@ pulpcore/client/pulp_ansible/models/ansible_collection_remote_response_hidden_fi
80
80
  pulpcore/client/pulp_ansible/models/ansible_collection_response.py,sha256=4tyUqab25bfRv2gzloTxrG59u1gAxeoLo0YpqoGJA_Q,2712
81
81
  pulpcore/client/pulp_ansible/models/ansible_collection_version_mark.py,sha256=wFXYnnbaAQdgV03AZ4l9M7uClsZM15hywoc39Sr-69Y,3149
82
82
  pulpcore/client/pulp_ansible/models/ansible_collection_version_mark_response.py,sha256=4yy8xouq_xUyeaIxz2bs6tcxLSq905zwKw6QoIHLyts,3620
83
- pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py,sha256=bAwWo5eLwxcNE6TjOG226tA6cSX6DtoVAkxOxSCqTh0,11056
83
+ pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py,sha256=Q7GvGnwbHw9NEXNomHvBvqQigwhloEAP2LVbuaJeUf8,11056
84
84
  pulpcore/client/pulp_ansible/models/ansible_collection_version_signature_response.py,sha256=m-nTcZanPiG718-rNRi9sBBnGq2pgdhITp_MgM5nG0Q,4861
85
- pulpcore/client/pulp_ansible/models/ansible_git_remote.py,sha256=p_LRHhgwtEJenqkZpjah8wnR3ZyYdF0ORTVGKYLBtms,11612
86
- pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py,sha256=rHaLFwblPWgJBC0648K6EumtO2Nc7c2ey-TXz5A8hoA,10910
85
+ pulpcore/client/pulp_ansible/models/ansible_git_remote.py,sha256=U9KgTqDuOeMVHiuojdmC9NrZj94k68_7nZUAZn-SdKU,11612
86
+ pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py,sha256=m-RXPLQqJZVvAB66go5xWp67ICs4bQVpEz9-c_E1oXw,10910
87
87
  pulpcore/client/pulp_ansible/models/ansible_repository_mark.py,sha256=fpoc-mve-GfkxJoFjd7Qqn_jtzDaWImAGVqYQPNwbyI,3149
88
88
  pulpcore/client/pulp_ansible/models/ansible_repository_rebuild.py,sha256=wlSyfA7DdGO4Mr1O3D_u_fgsEHeuMJZTKcQ1FpqzaEs,3520
89
89
  pulpcore/client/pulp_ansible/models/ansible_repository_signature.py,sha256=JBt9nQX_oZL1xlxndp18_WTBvXIennK7ifHq2IzQpRk,2844
90
90
  pulpcore/client/pulp_ansible/models/ansible_repository_sync_url.py,sha256=_PYO7d-m-eRDhhDtqvVHszN2zB_-xXzDFW9eDUmMQpU,3184
91
- pulpcore/client/pulp_ansible/models/ansible_role.py,sha256=AxEitvs7NKXVRZD-tA6mSsW5QUCO4GHY1uLk06XndlM,3408
91
+ pulpcore/client/pulp_ansible/models/ansible_role.py,sha256=p7SJRuLIGlq9NzuOBsymxmatM3rzZRoimG8WJ2lg5Nk,3408
92
92
  pulpcore/client/pulp_ansible/models/ansible_role_remote.py,sha256=1d6qlLxeM57m1GLCaWgFpQpXqR5r-GwdtGcAt172bLY,11441
93
93
  pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py,sha256=N5pbB5NVZYlj5jeFGGL9804Hejk18bOxM6Re6Sp-9-E,10778
94
- pulpcore/client/pulp_ansible/models/ansible_role_response.py,sha256=ZqhpQEN34E8BDsHhBYsWdchEV-LS-arsRvlNj6yiXEM,4171
94
+ pulpcore/client/pulp_ansible/models/ansible_role_response.py,sha256=7-1KAJuU7hBvkoZUoa7A3hEPFoEVL0LCy9MyhY-ktIQ,4171
95
95
  pulpcore/client/pulp_ansible/models/ansible_tag_response.py,sha256=lNOPws7XWrbwmW7DjxEp6A5d6t_AChTm7F7CM3sf3kU,2666
96
96
  pulpcore/client/pulp_ansible/models/artifact_ref_response.py,sha256=9MdFjZOcPE4jzZQJcMp5Dem5YI8DxDW98T34xNwAO9c,2662
97
97
  pulpcore/client/pulp_ansible/models/async_operation_response.py,sha256=IbcgvoCxfMCL9HXaPJDPLgDo8IKE12QKstLIxzhegt8,2558
@@ -144,7 +144,7 @@ pulpcore/client/pulp_ansible/models/patched_collection.py,sha256=2gETvIigq3DYZwq
144
144
  pulpcore/client/pulp_ansible/models/patchedansible_ansible_distribution.py,sha256=V7X6L3YU_68qK3q7RDqJTl-sPTXaAZLZi3VK99kDvfI,4481
145
145
  pulpcore/client/pulp_ansible/models/patchedansible_ansible_repository.py,sha256=p-bYHX1DFL6euTC84HdqNFZR2c8s1hjRlUFPpJjor-8,5262
146
146
  pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py,sha256=Z6tK5g7DQXKLGoTQJOwzUF6ycyR3y3lzVuIp56l_vpA,13471
147
- pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py,sha256=wnj9Z14XLO5zplb_Db2sjaO9rM6hw3cZu9Rbr51JUNA,11681
147
+ pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py,sha256=jAimL4_ltHKvELMbchGjS4kMKUeeBfDehLkRv1yMXpA,11681
148
148
  pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py,sha256=MtK76ZqBC-v64aKz8RtVnH0GqB1UEazp4YG8Y2pHQNE,11510
149
149
  pulpcore/client/pulp_ansible/models/policy_enum.py,sha256=fTbVIDfgaD0BEWtpX8wzz1dSDWuvYJhmROvxX52o8lY,770
150
150
  pulpcore/client/pulp_ansible/models/repair.py,sha256=M8UfanWpr-eFWYNl6Dba83L-dI2BA9djt8QxIhPR6i4,2756
@@ -159,7 +159,7 @@ pulpcore/client/pulp_ansible/models/tag_response.py,sha256=XdXKIYNN4pJzTglmdakSh
159
159
  pulpcore/client/pulp_ansible/models/unpaginated_collection_version_response.py,sha256=FNRRvIWvwFRBTeV5meUHPkcgzYK9AcnIgTznCpGHwQk,7465
160
160
  pulpcore/client/pulp_ansible/models/unset_label.py,sha256=m6s6AFgi5_7fKsjPhcLwz7ZjKXsSd_4F6PS7u5eINO0,2858
161
161
  pulpcore/client/pulp_ansible/models/unset_label_response.py,sha256=-TZohJf66mUqg4qD04k1dNoyAx69bX_VSf-HM9EpqN8,3046
162
- pulp_ansible_client-0.25.0.dist-info/METADATA,sha256=VbCbL8cioljBd9mdlrtNEafVpash_w9y9OS_Tj90kjk,466
163
- pulp_ansible_client-0.25.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
164
- pulp_ansible_client-0.25.0.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
165
- pulp_ansible_client-0.25.0.dist-info/RECORD,,
162
+ pulp_ansible_client-0.25.1.dist-info/METADATA,sha256=u0_Nc0SFvcwiue94dwFuXv-QhheG3vfTniSk4LOR4Gw,466
163
+ pulp_ansible_client-0.25.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
164
+ pulp_ansible_client-0.25.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
165
+ pulp_ansible_client-0.25.1.dist-info/RECORD,,
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "0.25.0"
18
+ __version__ = "0.25.1"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pulpcore.client.pulp_ansible.api.ansible_collections_api import AnsibleCollectionsApi
@@ -49,12 +49,12 @@ class ContentCollectionVersionsApi:
49
49
  @validate_call
50
50
  def create(
51
51
  self,
52
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
52
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
53
53
  pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
54
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
54
55
  upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
55
- file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
56
- repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
57
56
  artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
57
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
58
58
  expected_name: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="The name of the collection.")] = None,
59
59
  expected_namespace: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="The namespace of the collection.")] = None,
60
60
  expected_version: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="The version of the collection.")] = None,
@@ -75,18 +75,18 @@ class ContentCollectionVersionsApi:
75
75
 
76
76
  Trigger an asynchronous task to create content,optionally create new repository version.
77
77
 
78
- :param file: An uploaded file that may be turned into the content unit.
79
- :type file: bytearray
78
+ :param repository: A URI of a repository the new content unit should be associated with.
79
+ :type repository: str
80
80
  :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
81
81
  :type pulp_labels: Dict[str, Optional[str]]
82
+ :param file: An uploaded file that may be turned into the content unit.
83
+ :type file: bytearray
82
84
  :param upload: An uncommitted upload that may be turned into the content unit.
83
85
  :type upload: str
84
- :param file_url: A url that Pulp can download and turn into the content unit.
85
- :type file_url: str
86
- :param repository: A URI of a repository the new content unit should be associated with.
87
- :type repository: str
88
86
  :param artifact: Artifact file representing the physical content
89
87
  :type artifact: str
88
+ :param file_url: A url that Pulp can download and turn into the content unit.
89
+ :type file_url: str
90
90
  :param expected_name: The name of the collection.
91
91
  :type expected_name: str
92
92
  :param expected_namespace: The namespace of the collection.
@@ -116,12 +116,12 @@ class ContentCollectionVersionsApi:
116
116
  """ # noqa: E501
117
117
 
118
118
  _param = self._create_serialize(
119
- file=file,
119
+ repository=repository,
120
120
  pulp_labels=pulp_labels,
121
+ file=file,
121
122
  upload=upload,
122
- file_url=file_url,
123
- repository=repository,
124
123
  artifact=artifact,
124
+ file_url=file_url,
125
125
  expected_name=expected_name,
126
126
  expected_namespace=expected_namespace,
127
127
  expected_version=expected_version,
@@ -148,12 +148,12 @@ class ContentCollectionVersionsApi:
148
148
  @validate_call
149
149
  def create_with_http_info(
150
150
  self,
151
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
151
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
152
152
  pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
153
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
153
154
  upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
154
- file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
155
- repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
156
155
  artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
156
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
157
157
  expected_name: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="The name of the collection.")] = None,
158
158
  expected_namespace: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="The namespace of the collection.")] = None,
159
159
  expected_version: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="The version of the collection.")] = None,
@@ -174,18 +174,18 @@ class ContentCollectionVersionsApi:
174
174
 
175
175
  Trigger an asynchronous task to create content,optionally create new repository version.
176
176
 
177
- :param file: An uploaded file that may be turned into the content unit.
178
- :type file: bytearray
177
+ :param repository: A URI of a repository the new content unit should be associated with.
178
+ :type repository: str
179
179
  :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
180
180
  :type pulp_labels: Dict[str, Optional[str]]
181
+ :param file: An uploaded file that may be turned into the content unit.
182
+ :type file: bytearray
181
183
  :param upload: An uncommitted upload that may be turned into the content unit.
182
184
  :type upload: str
183
- :param file_url: A url that Pulp can download and turn into the content unit.
184
- :type file_url: str
185
- :param repository: A URI of a repository the new content unit should be associated with.
186
- :type repository: str
187
185
  :param artifact: Artifact file representing the physical content
188
186
  :type artifact: str
187
+ :param file_url: A url that Pulp can download and turn into the content unit.
188
+ :type file_url: str
189
189
  :param expected_name: The name of the collection.
190
190
  :type expected_name: str
191
191
  :param expected_namespace: The namespace of the collection.
@@ -215,12 +215,12 @@ class ContentCollectionVersionsApi:
215
215
  """ # noqa: E501
216
216
 
217
217
  _param = self._create_serialize(
218
- file=file,
218
+ repository=repository,
219
219
  pulp_labels=pulp_labels,
220
+ file=file,
220
221
  upload=upload,
221
- file_url=file_url,
222
- repository=repository,
223
222
  artifact=artifact,
223
+ file_url=file_url,
224
224
  expected_name=expected_name,
225
225
  expected_namespace=expected_namespace,
226
226
  expected_version=expected_version,
@@ -247,12 +247,12 @@ class ContentCollectionVersionsApi:
247
247
  @validate_call
248
248
  def create_without_preload_content(
249
249
  self,
250
- file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
250
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
251
251
  pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
252
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
252
253
  upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
253
- file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
254
- repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
255
254
  artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
255
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
256
256
  expected_name: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="The name of the collection.")] = None,
257
257
  expected_namespace: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]], Field(description="The namespace of the collection.")] = None,
258
258
  expected_version: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="The version of the collection.")] = None,
@@ -273,18 +273,18 @@ class ContentCollectionVersionsApi:
273
273
 
274
274
  Trigger an asynchronous task to create content,optionally create new repository version.
275
275
 
276
- :param file: An uploaded file that may be turned into the content unit.
277
- :type file: bytearray
276
+ :param repository: A URI of a repository the new content unit should be associated with.
277
+ :type repository: str
278
278
  :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
279
279
  :type pulp_labels: Dict[str, Optional[str]]
280
+ :param file: An uploaded file that may be turned into the content unit.
281
+ :type file: bytearray
280
282
  :param upload: An uncommitted upload that may be turned into the content unit.
281
283
  :type upload: str
282
- :param file_url: A url that Pulp can download and turn into the content unit.
283
- :type file_url: str
284
- :param repository: A URI of a repository the new content unit should be associated with.
285
- :type repository: str
286
284
  :param artifact: Artifact file representing the physical content
287
285
  :type artifact: str
286
+ :param file_url: A url that Pulp can download and turn into the content unit.
287
+ :type file_url: str
288
288
  :param expected_name: The name of the collection.
289
289
  :type expected_name: str
290
290
  :param expected_namespace: The namespace of the collection.
@@ -314,12 +314,12 @@ class ContentCollectionVersionsApi:
314
314
  """ # noqa: E501
315
315
 
316
316
  _param = self._create_serialize(
317
- file=file,
317
+ repository=repository,
318
318
  pulp_labels=pulp_labels,
319
+ file=file,
319
320
  upload=upload,
320
- file_url=file_url,
321
- repository=repository,
322
321
  artifact=artifact,
322
+ file_url=file_url,
323
323
  expected_name=expected_name,
324
324
  expected_namespace=expected_namespace,
325
325
  expected_version=expected_version,
@@ -341,12 +341,12 @@ class ContentCollectionVersionsApi:
341
341
 
342
342
  def _create_serialize(
343
343
  self,
344
- file,
344
+ repository,
345
345
  pulp_labels,
346
+ file,
346
347
  upload,
347
- file_url,
348
- repository,
349
348
  artifact,
349
+ file_url,
350
350
  expected_name,
351
351
  expected_namespace,
352
352
  expected_version,
@@ -374,18 +374,18 @@ class ContentCollectionVersionsApi:
374
374
  # process the query parameters
375
375
  # process the header parameters
376
376
  # process the form parameters
377
- if file is not None:
378
- _files['file'] = file
377
+ if repository is not None:
378
+ _form_params.append(('repository', repository))
379
379
  if pulp_labels is not None:
380
380
  _form_params.append(('pulp_labels', pulp_labels))
381
+ if file is not None:
382
+ _files['file'] = file
381
383
  if upload is not None:
382
384
  _form_params.append(('upload', upload))
383
- if file_url is not None:
384
- _form_params.append(('file_url', file_url))
385
- if repository is not None:
386
- _form_params.append(('repository', repository))
387
385
  if artifact is not None:
388
386
  _form_params.append(('artifact', artifact))
387
+ if file_url is not None:
388
+ _form_params.append(('file_url', file_url))
389
389
  if expected_name is not None:
390
390
  _form_params.append(('expected_name', expected_name))
391
391
  if expected_namespace is not None:
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/0.25.0/python'
94
+ self.user_agent = 'OpenAPI-Generator/0.25.1/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -549,7 +549,7 @@ conf = pulpcore.client.pulp_ansible.Configuration(
549
549
  "OS: {env}\n"\
550
550
  "Python Version: {pyversion}\n"\
551
551
  "Version of the API: v3\n"\
552
- "SDK Package Version: 0.25.0".\
552
+ "SDK Package Version: 0.25.1".\
553
553
  format(env=sys.platform, pyversion=sys.version)
554
554
 
555
555
  def get_host_settings(self) -> List[HostSetting]:
@@ -32,9 +32,9 @@ class AnsibleCollectionVersionResponse(BaseModel):
32
32
  """ # noqa: E501
33
33
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
34
34
  prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
35
+ artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
35
36
  pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
36
37
  pulp_href: Optional[StrictStr] = None
37
- artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
38
38
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
39
39
  sha256: Optional[StrictStr] = Field(default=None, description="The SHA-256 checksum if available.")
40
40
  md5: Optional[StrictStr] = Field(default=None, description="The MD5 checksum if available.")
@@ -60,7 +60,7 @@ class AnsibleCollectionVersionResponse(BaseModel):
60
60
  tags: Optional[List[AnsibleTagResponse]] = None
61
61
  version: Optional[Annotated[str, Field(strict=True, max_length=128)]] = Field(default=None, description="The version of the collection.")
62
62
  requires_ansible: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="The version of Ansible required to use the collection. Multiple versions can be separated with a comma.")
63
- __properties: ClassVar[List[str]] = ["pulp_labels", "prn", "pulp_last_updated", "pulp_href", "artifact", "pulp_created", "sha256", "md5", "sha1", "sha224", "sha384", "sha512", "id", "authors", "contents", "dependencies", "description", "docs_blob", "manifest", "files", "documentation", "homepage", "issues", "license", "name", "namespace", "origin_repository", "tags", "version", "requires_ansible"]
63
+ __properties: ClassVar[List[str]] = ["pulp_labels", "prn", "artifact", "pulp_last_updated", "pulp_href", "pulp_created", "sha256", "md5", "sha1", "sha224", "sha384", "sha512", "id", "authors", "contents", "dependencies", "description", "docs_blob", "manifest", "files", "documentation", "homepage", "issues", "license", "name", "namespace", "origin_repository", "tags", "version", "requires_ansible"]
64
64
 
65
65
  model_config = ConfigDict(
66
66
  populate_by_name=True,
@@ -183,9 +183,9 @@ class AnsibleCollectionVersionResponse(BaseModel):
183
183
  _obj = cls.model_validate({
184
184
  "pulp_labels": obj.get("pulp_labels"),
185
185
  "prn": obj.get("prn"),
186
+ "artifact": obj.get("artifact"),
186
187
  "pulp_last_updated": obj.get("pulp_last_updated"),
187
188
  "pulp_href": obj.get("pulp_href"),
188
- "artifact": obj.get("artifact"),
189
189
  "pulp_created": obj.get("pulp_created"),
190
190
  "sha256": obj.get("sha256"),
191
191
  "md5": obj.get("md5"),
@@ -28,29 +28,29 @@ class AnsibleGitRemote(BaseModel):
28
28
  """
29
29
  A serializer for Git Collection Remotes.
30
30
  """ # noqa: E501
31
- sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
32
- pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
33
- connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
34
- proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
35
31
  password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
36
- name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
37
- proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
32
+ max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
33
+ connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
34
+ rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
38
35
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
39
- ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
40
36
  download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
41
- max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
37
+ headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
42
38
  url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
43
- client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
44
- username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
45
- sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
46
- proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
39
+ proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
40
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
47
41
  total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
48
- headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
49
- rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
42
+ sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
43
+ proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
44
+ username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
50
45
  client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
46
+ sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
47
+ client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
48
+ name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
49
+ ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
50
+ proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
51
51
  metadata_only: Optional[StrictBool] = Field(default=None, description="If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.")
52
52
  git_ref: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A git ref. e.g.: branch, tag, or commit sha.")
53
- __properties: ClassVar[List[str]] = ["sock_read_timeout", "pulp_labels", "connect_timeout", "proxy_username", "password", "name", "proxy_url", "tls_validation", "ca_cert", "download_concurrency", "max_retries", "url", "client_key", "username", "sock_connect_timeout", "proxy_password", "total_timeout", "headers", "rate_limit", "client_cert", "metadata_only", "git_ref"]
53
+ __properties: ClassVar[List[str]] = ["password", "max_retries", "connect_timeout", "rate_limit", "tls_validation", "download_concurrency", "headers", "url", "proxy_url", "pulp_labels", "total_timeout", "sock_read_timeout", "proxy_password", "username", "client_cert", "sock_connect_timeout", "client_key", "name", "ca_cert", "proxy_username", "metadata_only", "git_ref"]
54
54
 
55
55
  model_config = ConfigDict(
56
56
  populate_by_name=True,
@@ -91,80 +91,80 @@ class AnsibleGitRemote(BaseModel):
91
91
  exclude=excluded_fields,
92
92
  exclude_none=True,
93
93
  )
94
- # set to None if sock_read_timeout (nullable) is None
94
+ # set to None if password (nullable) is None
95
95
  # and model_fields_set contains the field
96
- if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
97
- _dict['sock_read_timeout'] = None
96
+ if self.password is None and "password" in self.model_fields_set:
97
+ _dict['password'] = None
98
+
99
+ # set to None if max_retries (nullable) is None
100
+ # and model_fields_set contains the field
101
+ if self.max_retries is None and "max_retries" in self.model_fields_set:
102
+ _dict['max_retries'] = None
98
103
 
99
104
  # set to None if connect_timeout (nullable) is None
100
105
  # and model_fields_set contains the field
101
106
  if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
102
107
  _dict['connect_timeout'] = None
103
108
 
104
- # set to None if proxy_username (nullable) is None
109
+ # set to None if rate_limit (nullable) is None
105
110
  # and model_fields_set contains the field
106
- if self.proxy_username is None and "proxy_username" in self.model_fields_set:
107
- _dict['proxy_username'] = None
111
+ if self.rate_limit is None and "rate_limit" in self.model_fields_set:
112
+ _dict['rate_limit'] = None
108
113
 
109
- # set to None if password (nullable) is None
114
+ # set to None if download_concurrency (nullable) is None
110
115
  # and model_fields_set contains the field
111
- if self.password is None and "password" in self.model_fields_set:
112
- _dict['password'] = None
116
+ if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
117
+ _dict['download_concurrency'] = None
113
118
 
114
119
  # set to None if proxy_url (nullable) is None
115
120
  # and model_fields_set contains the field
116
121
  if self.proxy_url is None and "proxy_url" in self.model_fields_set:
117
122
  _dict['proxy_url'] = None
118
123
 
119
- # set to None if ca_cert (nullable) is None
120
- # and model_fields_set contains the field
121
- if self.ca_cert is None and "ca_cert" in self.model_fields_set:
122
- _dict['ca_cert'] = None
123
-
124
- # set to None if download_concurrency (nullable) is None
124
+ # set to None if total_timeout (nullable) is None
125
125
  # and model_fields_set contains the field
126
- if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
127
- _dict['download_concurrency'] = None
126
+ if self.total_timeout is None and "total_timeout" in self.model_fields_set:
127
+ _dict['total_timeout'] = None
128
128
 
129
- # set to None if max_retries (nullable) is None
129
+ # set to None if sock_read_timeout (nullable) is None
130
130
  # and model_fields_set contains the field
131
- if self.max_retries is None and "max_retries" in self.model_fields_set:
132
- _dict['max_retries'] = None
131
+ if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
132
+ _dict['sock_read_timeout'] = None
133
133
 
134
- # set to None if client_key (nullable) is None
134
+ # set to None if proxy_password (nullable) is None
135
135
  # and model_fields_set contains the field
136
- if self.client_key is None and "client_key" in self.model_fields_set:
137
- _dict['client_key'] = None
136
+ if self.proxy_password is None and "proxy_password" in self.model_fields_set:
137
+ _dict['proxy_password'] = None
138
138
 
139
139
  # set to None if username (nullable) is None
140
140
  # and model_fields_set contains the field
141
141
  if self.username is None and "username" in self.model_fields_set:
142
142
  _dict['username'] = None
143
143
 
144
+ # set to None if client_cert (nullable) is None
145
+ # and model_fields_set contains the field
146
+ if self.client_cert is None and "client_cert" in self.model_fields_set:
147
+ _dict['client_cert'] = None
148
+
144
149
  # set to None if sock_connect_timeout (nullable) is None
145
150
  # and model_fields_set contains the field
146
151
  if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
147
152
  _dict['sock_connect_timeout'] = None
148
153
 
149
- # set to None if proxy_password (nullable) is None
150
- # and model_fields_set contains the field
151
- if self.proxy_password is None and "proxy_password" in self.model_fields_set:
152
- _dict['proxy_password'] = None
153
-
154
- # set to None if total_timeout (nullable) is None
154
+ # set to None if client_key (nullable) is None
155
155
  # and model_fields_set contains the field
156
- if self.total_timeout is None and "total_timeout" in self.model_fields_set:
157
- _dict['total_timeout'] = None
156
+ if self.client_key is None and "client_key" in self.model_fields_set:
157
+ _dict['client_key'] = None
158
158
 
159
- # set to None if rate_limit (nullable) is None
159
+ # set to None if ca_cert (nullable) is None
160
160
  # and model_fields_set contains the field
161
- if self.rate_limit is None and "rate_limit" in self.model_fields_set:
162
- _dict['rate_limit'] = None
161
+ if self.ca_cert is None and "ca_cert" in self.model_fields_set:
162
+ _dict['ca_cert'] = None
163
163
 
164
- # set to None if client_cert (nullable) is None
164
+ # set to None if proxy_username (nullable) is None
165
165
  # and model_fields_set contains the field
166
- if self.client_cert is None and "client_cert" in self.model_fields_set:
167
- _dict['client_cert'] = None
166
+ if self.proxy_username is None and "proxy_username" in self.model_fields_set:
167
+ _dict['proxy_username'] = None
168
168
 
169
169
  return _dict
170
170
 
@@ -178,26 +178,26 @@ class AnsibleGitRemote(BaseModel):
178
178
  return cls.model_validate(obj)
179
179
 
180
180
  _obj = cls.model_validate({
181
- "sock_read_timeout": obj.get("sock_read_timeout"),
182
- "pulp_labels": obj.get("pulp_labels"),
183
- "connect_timeout": obj.get("connect_timeout"),
184
- "proxy_username": obj.get("proxy_username"),
185
181
  "password": obj.get("password"),
186
- "name": obj.get("name"),
187
- "proxy_url": obj.get("proxy_url"),
182
+ "max_retries": obj.get("max_retries"),
183
+ "connect_timeout": obj.get("connect_timeout"),
184
+ "rate_limit": obj.get("rate_limit"),
188
185
  "tls_validation": obj.get("tls_validation"),
189
- "ca_cert": obj.get("ca_cert"),
190
186
  "download_concurrency": obj.get("download_concurrency"),
191
- "max_retries": obj.get("max_retries"),
187
+ "headers": obj.get("headers"),
192
188
  "url": obj.get("url"),
193
- "client_key": obj.get("client_key"),
194
- "username": obj.get("username"),
195
- "sock_connect_timeout": obj.get("sock_connect_timeout"),
196
- "proxy_password": obj.get("proxy_password"),
189
+ "proxy_url": obj.get("proxy_url"),
190
+ "pulp_labels": obj.get("pulp_labels"),
197
191
  "total_timeout": obj.get("total_timeout"),
198
- "headers": obj.get("headers"),
199
- "rate_limit": obj.get("rate_limit"),
192
+ "sock_read_timeout": obj.get("sock_read_timeout"),
193
+ "proxy_password": obj.get("proxy_password"),
194
+ "username": obj.get("username"),
200
195
  "client_cert": obj.get("client_cert"),
196
+ "sock_connect_timeout": obj.get("sock_connect_timeout"),
197
+ "client_key": obj.get("client_key"),
198
+ "name": obj.get("name"),
199
+ "ca_cert": obj.get("ca_cert"),
200
+ "proxy_username": obj.get("proxy_username"),
201
201
  "metadata_only": obj.get("metadata_only"),
202
202
  "git_ref": obj.get("git_ref")
203
203
  })
@@ -30,29 +30,29 @@ class AnsibleGitRemoteResponse(BaseModel):
30
30
  """
31
31
  A serializer for Git Collection Remotes.
32
32
  """ # noqa: E501
33
- sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
34
- pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
33
+ max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
34
+ prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
35
35
  connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
36
- pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
37
- name: StrictStr = Field(description="A unique name for this remote.")
38
- proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
36
+ hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
37
+ rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
39
38
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
40
- ca_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
41
- download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
42
- max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
43
39
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
40
+ download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
41
+ headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
44
42
  url: StrictStr = Field(description="The URL of an external content source.")
45
- prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
46
- hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
47
- sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
48
- pulp_href: Optional[StrictStr] = None
43
+ proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
44
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
49
45
  total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
50
- headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
51
- rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
46
+ sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
52
47
  client_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
48
+ pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
49
+ pulp_href: Optional[StrictStr] = None
50
+ sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
51
+ name: StrictStr = Field(description="A unique name for this remote.")
52
+ ca_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
53
53
  metadata_only: Optional[StrictBool] = Field(default=None, description="If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.")
54
54
  git_ref: Optional[StrictStr] = Field(default=None, description="A git ref. e.g.: branch, tag, or commit sha.")
55
- __properties: ClassVar[List[str]] = ["sock_read_timeout", "pulp_labels", "connect_timeout", "pulp_last_updated", "name", "proxy_url", "tls_validation", "ca_cert", "download_concurrency", "max_retries", "pulp_created", "url", "prn", "hidden_fields", "sock_connect_timeout", "pulp_href", "total_timeout", "headers", "rate_limit", "client_cert", "metadata_only", "git_ref"]
55
+ __properties: ClassVar[List[str]] = ["max_retries", "prn", "connect_timeout", "hidden_fields", "rate_limit", "tls_validation", "pulp_created", "download_concurrency", "headers", "url", "proxy_url", "pulp_labels", "total_timeout", "sock_read_timeout", "client_cert", "pulp_last_updated", "pulp_href", "sock_connect_timeout", "name", "ca_cert", "metadata_only", "git_ref"]
56
56
 
57
57
  model_config = ConfigDict(
58
58
  populate_by_name=True,
@@ -91,10 +91,10 @@ class AnsibleGitRemoteResponse(BaseModel):
91
91
  * OpenAPI `readOnly` fields are excluded.
92
92
  """
93
93
  excluded_fields: Set[str] = set([
94
- "pulp_last_updated",
95
- "pulp_created",
96
94
  "prn",
97
95
  "hidden_fields",
96
+ "pulp_created",
97
+ "pulp_last_updated",
98
98
  "pulp_href",
99
99
  ])
100
100
 
@@ -110,56 +110,56 @@ class AnsibleGitRemoteResponse(BaseModel):
110
110
  if _item_hidden_fields:
111
111
  _items.append(_item_hidden_fields.to_dict())
112
112
  _dict['hidden_fields'] = _items
113
- # set to None if sock_read_timeout (nullable) is None
113
+ # set to None if max_retries (nullable) is None
114
114
  # and model_fields_set contains the field
115
- if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
116
- _dict['sock_read_timeout'] = None
115
+ if self.max_retries is None and "max_retries" in self.model_fields_set:
116
+ _dict['max_retries'] = None
117
117
 
118
118
  # set to None if connect_timeout (nullable) is None
119
119
  # and model_fields_set contains the field
120
120
  if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
121
121
  _dict['connect_timeout'] = None
122
122
 
123
- # set to None if proxy_url (nullable) is None
124
- # and model_fields_set contains the field
125
- if self.proxy_url is None and "proxy_url" in self.model_fields_set:
126
- _dict['proxy_url'] = None
127
-
128
- # set to None if ca_cert (nullable) is None
123
+ # set to None if rate_limit (nullable) is None
129
124
  # and model_fields_set contains the field
130
- if self.ca_cert is None and "ca_cert" in self.model_fields_set:
131
- _dict['ca_cert'] = None
125
+ if self.rate_limit is None and "rate_limit" in self.model_fields_set:
126
+ _dict['rate_limit'] = None
132
127
 
133
128
  # set to None if download_concurrency (nullable) is None
134
129
  # and model_fields_set contains the field
135
130
  if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
136
131
  _dict['download_concurrency'] = None
137
132
 
138
- # set to None if max_retries (nullable) is None
139
- # and model_fields_set contains the field
140
- if self.max_retries is None and "max_retries" in self.model_fields_set:
141
- _dict['max_retries'] = None
142
-
143
- # set to None if sock_connect_timeout (nullable) is None
133
+ # set to None if proxy_url (nullable) is None
144
134
  # and model_fields_set contains the field
145
- if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
146
- _dict['sock_connect_timeout'] = None
135
+ if self.proxy_url is None and "proxy_url" in self.model_fields_set:
136
+ _dict['proxy_url'] = None
147
137
 
148
138
  # set to None if total_timeout (nullable) is None
149
139
  # and model_fields_set contains the field
150
140
  if self.total_timeout is None and "total_timeout" in self.model_fields_set:
151
141
  _dict['total_timeout'] = None
152
142
 
153
- # set to None if rate_limit (nullable) is None
143
+ # set to None if sock_read_timeout (nullable) is None
154
144
  # and model_fields_set contains the field
155
- if self.rate_limit is None and "rate_limit" in self.model_fields_set:
156
- _dict['rate_limit'] = None
145
+ if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
146
+ _dict['sock_read_timeout'] = None
157
147
 
158
148
  # set to None if client_cert (nullable) is None
159
149
  # and model_fields_set contains the field
160
150
  if self.client_cert is None and "client_cert" in self.model_fields_set:
161
151
  _dict['client_cert'] = None
162
152
 
153
+ # set to None if sock_connect_timeout (nullable) is None
154
+ # and model_fields_set contains the field
155
+ if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
156
+ _dict['sock_connect_timeout'] = None
157
+
158
+ # set to None if ca_cert (nullable) is None
159
+ # and model_fields_set contains the field
160
+ if self.ca_cert is None and "ca_cert" in self.model_fields_set:
161
+ _dict['ca_cert'] = None
162
+
163
163
  return _dict
164
164
 
165
165
  @classmethod
@@ -172,26 +172,26 @@ class AnsibleGitRemoteResponse(BaseModel):
172
172
  return cls.model_validate(obj)
173
173
 
174
174
  _obj = cls.model_validate({
175
- "sock_read_timeout": obj.get("sock_read_timeout"),
176
- "pulp_labels": obj.get("pulp_labels"),
175
+ "max_retries": obj.get("max_retries"),
176
+ "prn": obj.get("prn"),
177
177
  "connect_timeout": obj.get("connect_timeout"),
178
- "pulp_last_updated": obj.get("pulp_last_updated"),
179
- "name": obj.get("name"),
180
- "proxy_url": obj.get("proxy_url"),
178
+ "hidden_fields": [AnsibleCollectionRemoteResponseHiddenFieldsInner.from_dict(_item) for _item in obj["hidden_fields"]] if obj.get("hidden_fields") is not None else None,
179
+ "rate_limit": obj.get("rate_limit"),
181
180
  "tls_validation": obj.get("tls_validation"),
182
- "ca_cert": obj.get("ca_cert"),
183
- "download_concurrency": obj.get("download_concurrency"),
184
- "max_retries": obj.get("max_retries"),
185
181
  "pulp_created": obj.get("pulp_created"),
182
+ "download_concurrency": obj.get("download_concurrency"),
183
+ "headers": obj.get("headers"),
186
184
  "url": obj.get("url"),
187
- "prn": obj.get("prn"),
188
- "hidden_fields": [AnsibleCollectionRemoteResponseHiddenFieldsInner.from_dict(_item) for _item in obj["hidden_fields"]] if obj.get("hidden_fields") is not None else None,
189
- "sock_connect_timeout": obj.get("sock_connect_timeout"),
190
- "pulp_href": obj.get("pulp_href"),
185
+ "proxy_url": obj.get("proxy_url"),
186
+ "pulp_labels": obj.get("pulp_labels"),
191
187
  "total_timeout": obj.get("total_timeout"),
192
- "headers": obj.get("headers"),
193
- "rate_limit": obj.get("rate_limit"),
188
+ "sock_read_timeout": obj.get("sock_read_timeout"),
194
189
  "client_cert": obj.get("client_cert"),
190
+ "pulp_last_updated": obj.get("pulp_last_updated"),
191
+ "pulp_href": obj.get("pulp_href"),
192
+ "sock_connect_timeout": obj.get("sock_connect_timeout"),
193
+ "name": obj.get("name"),
194
+ "ca_cert": obj.get("ca_cert"),
195
195
  "metadata_only": obj.get("metadata_only"),
196
196
  "git_ref": obj.get("git_ref")
197
197
  })
@@ -28,13 +28,13 @@ class AnsibleRole(BaseModel):
28
28
  """
29
29
  A serializer for Role versions.
30
30
  """ # noqa: E501
31
- pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
32
31
  repository: Optional[StrictStr] = Field(default=None, description="A URI of a repository the new content unit should be associated with.")
32
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
33
33
  artifact: StrictStr = Field(description="Artifact file representing the physical content")
34
34
  version: Annotated[str, Field(min_length=1, strict=True)]
35
35
  name: Annotated[str, Field(min_length=1, strict=True)]
36
36
  namespace: Annotated[str, Field(min_length=1, strict=True)]
37
- __properties: ClassVar[List[str]] = ["pulp_labels", "repository", "artifact", "version", "name", "namespace"]
37
+ __properties: ClassVar[List[str]] = ["repository", "pulp_labels", "artifact", "version", "name", "namespace"]
38
38
 
39
39
  model_config = ConfigDict(
40
40
  populate_by_name=True,
@@ -87,8 +87,8 @@ class AnsibleRole(BaseModel):
87
87
  return cls.model_validate(obj)
88
88
 
89
89
  _obj = cls.model_validate({
90
- "pulp_labels": obj.get("pulp_labels"),
91
90
  "repository": obj.get("repository"),
91
+ "pulp_labels": obj.get("pulp_labels"),
92
92
  "artifact": obj.get("artifact"),
93
93
  "version": obj.get("version"),
94
94
  "name": obj.get("name"),
@@ -30,14 +30,14 @@ class AnsibleRoleResponse(BaseModel):
30
30
  """ # noqa: E501
31
31
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
32
32
  prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
33
+ artifact: StrictStr = Field(description="Artifact file representing the physical content")
33
34
  pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
34
35
  pulp_href: Optional[StrictStr] = None
35
- artifact: StrictStr = Field(description="Artifact file representing the physical content")
36
36
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
37
37
  version: StrictStr
38
38
  name: StrictStr
39
39
  namespace: StrictStr
40
- __properties: ClassVar[List[str]] = ["pulp_labels", "prn", "pulp_last_updated", "pulp_href", "artifact", "pulp_created", "version", "name", "namespace"]
40
+ __properties: ClassVar[List[str]] = ["pulp_labels", "prn", "artifact", "pulp_last_updated", "pulp_href", "pulp_created", "version", "name", "namespace"]
41
41
 
42
42
  model_config = ConfigDict(
43
43
  populate_by_name=True,
@@ -100,9 +100,9 @@ class AnsibleRoleResponse(BaseModel):
100
100
  _obj = cls.model_validate({
101
101
  "pulp_labels": obj.get("pulp_labels"),
102
102
  "prn": obj.get("prn"),
103
+ "artifact": obj.get("artifact"),
103
104
  "pulp_last_updated": obj.get("pulp_last_updated"),
104
105
  "pulp_href": obj.get("pulp_href"),
105
- "artifact": obj.get("artifact"),
106
106
  "pulp_created": obj.get("pulp_created"),
107
107
  "version": obj.get("version"),
108
108
  "name": obj.get("name"),
@@ -28,29 +28,29 @@ class PatchedansibleGitRemote(BaseModel):
28
28
  """
29
29
  A serializer for Git Collection Remotes.
30
30
  """ # noqa: E501
31
- sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
32
- pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
33
- connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
34
- proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
35
31
  password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
36
- name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
37
- proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
32
+ max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
33
+ connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
34
+ rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
38
35
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
39
- ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
40
36
  download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
41
- max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
37
+ headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
42
38
  url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
43
- client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
44
- username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
45
- sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
46
- proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
39
+ proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
40
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
47
41
  total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
48
- headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
49
- rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
42
+ sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
43
+ proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
44
+ username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
50
45
  client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
46
+ sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
47
+ client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
48
+ name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
49
+ ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
50
+ proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
51
51
  metadata_only: Optional[StrictBool] = Field(default=None, description="If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.")
52
52
  git_ref: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A git ref. e.g.: branch, tag, or commit sha.")
53
- __properties: ClassVar[List[str]] = ["sock_read_timeout", "pulp_labels", "connect_timeout", "proxy_username", "password", "name", "proxy_url", "tls_validation", "ca_cert", "download_concurrency", "max_retries", "url", "client_key", "username", "sock_connect_timeout", "proxy_password", "total_timeout", "headers", "rate_limit", "client_cert", "metadata_only", "git_ref"]
53
+ __properties: ClassVar[List[str]] = ["password", "max_retries", "connect_timeout", "rate_limit", "tls_validation", "download_concurrency", "headers", "url", "proxy_url", "pulp_labels", "total_timeout", "sock_read_timeout", "proxy_password", "username", "client_cert", "sock_connect_timeout", "client_key", "name", "ca_cert", "proxy_username", "metadata_only", "git_ref"]
54
54
 
55
55
  model_config = ConfigDict(
56
56
  populate_by_name=True,
@@ -91,80 +91,80 @@ class PatchedansibleGitRemote(BaseModel):
91
91
  exclude=excluded_fields,
92
92
  exclude_none=True,
93
93
  )
94
- # set to None if sock_read_timeout (nullable) is None
94
+ # set to None if password (nullable) is None
95
95
  # and model_fields_set contains the field
96
- if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
97
- _dict['sock_read_timeout'] = None
96
+ if self.password is None and "password" in self.model_fields_set:
97
+ _dict['password'] = None
98
+
99
+ # set to None if max_retries (nullable) is None
100
+ # and model_fields_set contains the field
101
+ if self.max_retries is None and "max_retries" in self.model_fields_set:
102
+ _dict['max_retries'] = None
98
103
 
99
104
  # set to None if connect_timeout (nullable) is None
100
105
  # and model_fields_set contains the field
101
106
  if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
102
107
  _dict['connect_timeout'] = None
103
108
 
104
- # set to None if proxy_username (nullable) is None
109
+ # set to None if rate_limit (nullable) is None
105
110
  # and model_fields_set contains the field
106
- if self.proxy_username is None and "proxy_username" in self.model_fields_set:
107
- _dict['proxy_username'] = None
111
+ if self.rate_limit is None and "rate_limit" in self.model_fields_set:
112
+ _dict['rate_limit'] = None
108
113
 
109
- # set to None if password (nullable) is None
114
+ # set to None if download_concurrency (nullable) is None
110
115
  # and model_fields_set contains the field
111
- if self.password is None and "password" in self.model_fields_set:
112
- _dict['password'] = None
116
+ if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
117
+ _dict['download_concurrency'] = None
113
118
 
114
119
  # set to None if proxy_url (nullable) is None
115
120
  # and model_fields_set contains the field
116
121
  if self.proxy_url is None and "proxy_url" in self.model_fields_set:
117
122
  _dict['proxy_url'] = None
118
123
 
119
- # set to None if ca_cert (nullable) is None
120
- # and model_fields_set contains the field
121
- if self.ca_cert is None and "ca_cert" in self.model_fields_set:
122
- _dict['ca_cert'] = None
123
-
124
- # set to None if download_concurrency (nullable) is None
124
+ # set to None if total_timeout (nullable) is None
125
125
  # and model_fields_set contains the field
126
- if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
127
- _dict['download_concurrency'] = None
126
+ if self.total_timeout is None and "total_timeout" in self.model_fields_set:
127
+ _dict['total_timeout'] = None
128
128
 
129
- # set to None if max_retries (nullable) is None
129
+ # set to None if sock_read_timeout (nullable) is None
130
130
  # and model_fields_set contains the field
131
- if self.max_retries is None and "max_retries" in self.model_fields_set:
132
- _dict['max_retries'] = None
131
+ if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
132
+ _dict['sock_read_timeout'] = None
133
133
 
134
- # set to None if client_key (nullable) is None
134
+ # set to None if proxy_password (nullable) is None
135
135
  # and model_fields_set contains the field
136
- if self.client_key is None and "client_key" in self.model_fields_set:
137
- _dict['client_key'] = None
136
+ if self.proxy_password is None and "proxy_password" in self.model_fields_set:
137
+ _dict['proxy_password'] = None
138
138
 
139
139
  # set to None if username (nullable) is None
140
140
  # and model_fields_set contains the field
141
141
  if self.username is None and "username" in self.model_fields_set:
142
142
  _dict['username'] = None
143
143
 
144
+ # set to None if client_cert (nullable) is None
145
+ # and model_fields_set contains the field
146
+ if self.client_cert is None and "client_cert" in self.model_fields_set:
147
+ _dict['client_cert'] = None
148
+
144
149
  # set to None if sock_connect_timeout (nullable) is None
145
150
  # and model_fields_set contains the field
146
151
  if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
147
152
  _dict['sock_connect_timeout'] = None
148
153
 
149
- # set to None if proxy_password (nullable) is None
150
- # and model_fields_set contains the field
151
- if self.proxy_password is None and "proxy_password" in self.model_fields_set:
152
- _dict['proxy_password'] = None
153
-
154
- # set to None if total_timeout (nullable) is None
154
+ # set to None if client_key (nullable) is None
155
155
  # and model_fields_set contains the field
156
- if self.total_timeout is None and "total_timeout" in self.model_fields_set:
157
- _dict['total_timeout'] = None
156
+ if self.client_key is None and "client_key" in self.model_fields_set:
157
+ _dict['client_key'] = None
158
158
 
159
- # set to None if rate_limit (nullable) is None
159
+ # set to None if ca_cert (nullable) is None
160
160
  # and model_fields_set contains the field
161
- if self.rate_limit is None and "rate_limit" in self.model_fields_set:
162
- _dict['rate_limit'] = None
161
+ if self.ca_cert is None and "ca_cert" in self.model_fields_set:
162
+ _dict['ca_cert'] = None
163
163
 
164
- # set to None if client_cert (nullable) is None
164
+ # set to None if proxy_username (nullable) is None
165
165
  # and model_fields_set contains the field
166
- if self.client_cert is None and "client_cert" in self.model_fields_set:
167
- _dict['client_cert'] = None
166
+ if self.proxy_username is None and "proxy_username" in self.model_fields_set:
167
+ _dict['proxy_username'] = None
168
168
 
169
169
  return _dict
170
170
 
@@ -178,26 +178,26 @@ class PatchedansibleGitRemote(BaseModel):
178
178
  return cls.model_validate(obj)
179
179
 
180
180
  _obj = cls.model_validate({
181
- "sock_read_timeout": obj.get("sock_read_timeout"),
182
- "pulp_labels": obj.get("pulp_labels"),
183
- "connect_timeout": obj.get("connect_timeout"),
184
- "proxy_username": obj.get("proxy_username"),
185
181
  "password": obj.get("password"),
186
- "name": obj.get("name"),
187
- "proxy_url": obj.get("proxy_url"),
182
+ "max_retries": obj.get("max_retries"),
183
+ "connect_timeout": obj.get("connect_timeout"),
184
+ "rate_limit": obj.get("rate_limit"),
188
185
  "tls_validation": obj.get("tls_validation"),
189
- "ca_cert": obj.get("ca_cert"),
190
186
  "download_concurrency": obj.get("download_concurrency"),
191
- "max_retries": obj.get("max_retries"),
187
+ "headers": obj.get("headers"),
192
188
  "url": obj.get("url"),
193
- "client_key": obj.get("client_key"),
194
- "username": obj.get("username"),
195
- "sock_connect_timeout": obj.get("sock_connect_timeout"),
196
- "proxy_password": obj.get("proxy_password"),
189
+ "proxy_url": obj.get("proxy_url"),
190
+ "pulp_labels": obj.get("pulp_labels"),
197
191
  "total_timeout": obj.get("total_timeout"),
198
- "headers": obj.get("headers"),
199
- "rate_limit": obj.get("rate_limit"),
192
+ "sock_read_timeout": obj.get("sock_read_timeout"),
193
+ "proxy_password": obj.get("proxy_password"),
194
+ "username": obj.get("username"),
200
195
  "client_cert": obj.get("client_cert"),
196
+ "sock_connect_timeout": obj.get("sock_connect_timeout"),
197
+ "client_key": obj.get("client_key"),
198
+ "name": obj.get("name"),
199
+ "ca_cert": obj.get("ca_cert"),
200
+ "proxy_username": obj.get("proxy_username"),
201
201
  "metadata_only": obj.get("metadata_only"),
202
202
  "git_ref": obj.get("git_ref")
203
203
  })