legit-api-client 1.1.3975__py3-none-any.whl → 1.1.3976__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.
@@ -20,11 +20,16 @@ from pydantic import Field, StrictStr
20
20
  from typing import Any, List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from legit_api_client.models.amazon_ecr_key_integration_create_dto import AmazonEcrKeyIntegrationCreateDto
23
+ from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto
23
24
  from legit_api_client.models.amazon_ecr_role_integration_create_dto import AmazonEcrRoleIntegrationCreateDto
25
+ from legit_api_client.models.amazon_ecr_role_integration_edit_dto import AmazonEcrRoleIntegrationEditDto
24
26
  from legit_api_client.models.azure_container_registry_integration_create_dto import AzureContainerRegistryIntegrationCreateDto
27
+ from legit_api_client.models.azure_container_registry_integration_edit_dto import AzureContainerRegistryIntegrationEditDto
25
28
  from legit_api_client.models.google_container_registry_integration_create_dto import GoogleContainerRegistryIntegrationCreateDto
29
+ from legit_api_client.models.google_container_registry_integration_edit_dto import GoogleContainerRegistryIntegrationEditDto
26
30
  from legit_api_client.models.integration_management_dto import IntegrationManagementDto
27
31
  from legit_api_client.models.jenkins_integration_create_dto import JenkinsIntegrationCreateDto
32
+ from legit_api_client.models.jenkins_integration_edit_dto import JenkinsIntegrationEditDto
28
33
 
29
34
  from legit_api_client.api_client import ApiClient, RequestSerialized
30
35
  from legit_api_client.api_response import ApiResponse
@@ -45,9 +50,10 @@ class IntegrationsApi:
45
50
 
46
51
 
47
52
  @validate_call
48
- def api_v10_integrations_amazon_ecr_key_post(
53
+ def api_v10_integrations_amazon_ecr_key_id_put(
49
54
  self,
50
- amazon_ecr_key_integration_create_dto: Optional[AmazonEcrKeyIntegrationCreateDto] = None,
55
+ id: StrictStr,
56
+ amazon_ecr_key_integration_edit_dto: Optional[AmazonEcrKeyIntegrationEditDto] = None,
51
57
  _request_timeout: Union[
52
58
  None,
53
59
  Annotated[StrictFloat, Field(gt=0)],
@@ -61,12 +67,13 @@ class IntegrationsApi:
61
67
  _headers: Optional[Dict[StrictStr, Any]] = None,
62
68
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
69
  ) -> None:
64
- """Create Amazon ECR key integration
70
+ """Update Amazon ECR Key integration
65
71
 
66
- Using ignoreWarnings is not recommended and can create integration with missing features
67
72
 
68
- :param amazon_ecr_key_integration_create_dto:
69
- :type amazon_ecr_key_integration_create_dto: AmazonEcrKeyIntegrationCreateDto
73
+ :param id: (required)
74
+ :type id: str
75
+ :param amazon_ecr_key_integration_edit_dto:
76
+ :type amazon_ecr_key_integration_edit_dto: AmazonEcrKeyIntegrationEditDto
70
77
  :param _request_timeout: timeout setting for this request. If one
71
78
  number provided, it will be total request
72
79
  timeout. It can also be a pair (tuple) of
@@ -89,8 +96,9 @@ class IntegrationsApi:
89
96
  :return: Returns the result object.
90
97
  """ # noqa: E501
91
98
 
92
- _param = self._api_v10_integrations_amazon_ecr_key_post_serialize(
93
- amazon_ecr_key_integration_create_dto=amazon_ecr_key_integration_create_dto,
99
+ _param = self._api_v10_integrations_amazon_ecr_key_id_put_serialize(
100
+ id=id,
101
+ amazon_ecr_key_integration_edit_dto=amazon_ecr_key_integration_edit_dto,
94
102
  _request_auth=_request_auth,
95
103
  _content_type=_content_type,
96
104
  _headers=_headers,
@@ -98,8 +106,9 @@ class IntegrationsApi:
98
106
  )
99
107
 
100
108
  _response_types_map: Dict[str, Optional[str]] = {
101
- '201': None,
109
+ '204': None,
102
110
  '400': "IntegrationBadResponseDto",
111
+ '404': "ProblemDetails",
103
112
  }
104
113
  response_data = self.api_client.call_api(
105
114
  *_param,
@@ -113,9 +122,10 @@ class IntegrationsApi:
113
122
 
114
123
 
115
124
  @validate_call
116
- def api_v10_integrations_amazon_ecr_key_post_with_http_info(
125
+ def api_v10_integrations_amazon_ecr_key_id_put_with_http_info(
117
126
  self,
118
- amazon_ecr_key_integration_create_dto: Optional[AmazonEcrKeyIntegrationCreateDto] = None,
127
+ id: StrictStr,
128
+ amazon_ecr_key_integration_edit_dto: Optional[AmazonEcrKeyIntegrationEditDto] = None,
119
129
  _request_timeout: Union[
120
130
  None,
121
131
  Annotated[StrictFloat, Field(gt=0)],
@@ -129,12 +139,13 @@ class IntegrationsApi:
129
139
  _headers: Optional[Dict[StrictStr, Any]] = None,
130
140
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
141
  ) -> ApiResponse[None]:
132
- """Create Amazon ECR key integration
142
+ """Update Amazon ECR Key integration
133
143
 
134
- Using ignoreWarnings is not recommended and can create integration with missing features
135
144
 
136
- :param amazon_ecr_key_integration_create_dto:
137
- :type amazon_ecr_key_integration_create_dto: AmazonEcrKeyIntegrationCreateDto
145
+ :param id: (required)
146
+ :type id: str
147
+ :param amazon_ecr_key_integration_edit_dto:
148
+ :type amazon_ecr_key_integration_edit_dto: AmazonEcrKeyIntegrationEditDto
138
149
  :param _request_timeout: timeout setting for this request. If one
139
150
  number provided, it will be total request
140
151
  timeout. It can also be a pair (tuple) of
@@ -157,8 +168,9 @@ class IntegrationsApi:
157
168
  :return: Returns the result object.
158
169
  """ # noqa: E501
159
170
 
160
- _param = self._api_v10_integrations_amazon_ecr_key_post_serialize(
161
- amazon_ecr_key_integration_create_dto=amazon_ecr_key_integration_create_dto,
171
+ _param = self._api_v10_integrations_amazon_ecr_key_id_put_serialize(
172
+ id=id,
173
+ amazon_ecr_key_integration_edit_dto=amazon_ecr_key_integration_edit_dto,
162
174
  _request_auth=_request_auth,
163
175
  _content_type=_content_type,
164
176
  _headers=_headers,
@@ -166,8 +178,9 @@ class IntegrationsApi:
166
178
  )
167
179
 
168
180
  _response_types_map: Dict[str, Optional[str]] = {
169
- '201': None,
181
+ '204': None,
170
182
  '400': "IntegrationBadResponseDto",
183
+ '404': "ProblemDetails",
171
184
  }
172
185
  response_data = self.api_client.call_api(
173
186
  *_param,
@@ -181,9 +194,10 @@ class IntegrationsApi:
181
194
 
182
195
 
183
196
  @validate_call
184
- def api_v10_integrations_amazon_ecr_key_post_without_preload_content(
197
+ def api_v10_integrations_amazon_ecr_key_id_put_without_preload_content(
185
198
  self,
186
- amazon_ecr_key_integration_create_dto: Optional[AmazonEcrKeyIntegrationCreateDto] = None,
199
+ id: StrictStr,
200
+ amazon_ecr_key_integration_edit_dto: Optional[AmazonEcrKeyIntegrationEditDto] = None,
187
201
  _request_timeout: Union[
188
202
  None,
189
203
  Annotated[StrictFloat, Field(gt=0)],
@@ -197,12 +211,13 @@ class IntegrationsApi:
197
211
  _headers: Optional[Dict[StrictStr, Any]] = None,
198
212
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
199
213
  ) -> RESTResponseType:
200
- """Create Amazon ECR key integration
214
+ """Update Amazon ECR Key integration
201
215
 
202
- Using ignoreWarnings is not recommended and can create integration with missing features
203
216
 
204
- :param amazon_ecr_key_integration_create_dto:
205
- :type amazon_ecr_key_integration_create_dto: AmazonEcrKeyIntegrationCreateDto
217
+ :param id: (required)
218
+ :type id: str
219
+ :param amazon_ecr_key_integration_edit_dto:
220
+ :type amazon_ecr_key_integration_edit_dto: AmazonEcrKeyIntegrationEditDto
206
221
  :param _request_timeout: timeout setting for this request. If one
207
222
  number provided, it will be total request
208
223
  timeout. It can also be a pair (tuple) of
@@ -225,8 +240,9 @@ class IntegrationsApi:
225
240
  :return: Returns the result object.
226
241
  """ # noqa: E501
227
242
 
228
- _param = self._api_v10_integrations_amazon_ecr_key_post_serialize(
229
- amazon_ecr_key_integration_create_dto=amazon_ecr_key_integration_create_dto,
243
+ _param = self._api_v10_integrations_amazon_ecr_key_id_put_serialize(
244
+ id=id,
245
+ amazon_ecr_key_integration_edit_dto=amazon_ecr_key_integration_edit_dto,
230
246
  _request_auth=_request_auth,
231
247
  _content_type=_content_type,
232
248
  _headers=_headers,
@@ -234,8 +250,9 @@ class IntegrationsApi:
234
250
  )
235
251
 
236
252
  _response_types_map: Dict[str, Optional[str]] = {
237
- '201': None,
253
+ '204': None,
238
254
  '400': "IntegrationBadResponseDto",
255
+ '404': "ProblemDetails",
239
256
  }
240
257
  response_data = self.api_client.call_api(
241
258
  *_param,
@@ -244,9 +261,10 @@ class IntegrationsApi:
244
261
  return response_data.response
245
262
 
246
263
 
247
- def _api_v10_integrations_amazon_ecr_key_post_serialize(
264
+ def _api_v10_integrations_amazon_ecr_key_id_put_serialize(
248
265
  self,
249
- amazon_ecr_key_integration_create_dto,
266
+ id,
267
+ amazon_ecr_key_integration_edit_dto,
250
268
  _request_auth,
251
269
  _content_type,
252
270
  _headers,
@@ -268,12 +286,14 @@ class IntegrationsApi:
268
286
  _body_params: Optional[bytes] = None
269
287
 
270
288
  # process the path parameters
289
+ if id is not None:
290
+ _path_params['id'] = id
271
291
  # process the query parameters
272
292
  # process the header parameters
273
293
  # process the form parameters
274
294
  # process the body parameter
275
- if amazon_ecr_key_integration_create_dto is not None:
276
- _body_params = amazon_ecr_key_integration_create_dto
295
+ if amazon_ecr_key_integration_edit_dto is not None:
296
+ _body_params = amazon_ecr_key_integration_edit_dto
277
297
 
278
298
 
279
299
  # set the HTTP header `Accept`
@@ -309,8 +329,8 @@ class IntegrationsApi:
309
329
  ]
310
330
 
311
331
  return self.api_client.param_serialize(
312
- method='POST',
313
- resource_path='/api/v1.0/integrations/amazon-ecr/key',
332
+ method='PUT',
333
+ resource_path='/api/v1.0/integrations/amazon-ecr/key/{id}',
314
334
  path_params=_path_params,
315
335
  query_params=_query_params,
316
336
  header_params=_header_params,
@@ -327,9 +347,9 @@ class IntegrationsApi:
327
347
 
328
348
 
329
349
  @validate_call
330
- def api_v10_integrations_amazon_ecr_role_post(
350
+ def api_v10_integrations_amazon_ecr_key_post(
331
351
  self,
332
- amazon_ecr_role_integration_create_dto: Optional[AmazonEcrRoleIntegrationCreateDto] = None,
352
+ amazon_ecr_key_integration_create_dto: Optional[AmazonEcrKeyIntegrationCreateDto] = None,
333
353
  _request_timeout: Union[
334
354
  None,
335
355
  Annotated[StrictFloat, Field(gt=0)],
@@ -343,12 +363,12 @@ class IntegrationsApi:
343
363
  _headers: Optional[Dict[StrictStr, Any]] = None,
344
364
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
345
365
  ) -> None:
346
- """Create Amazon ECR Role integration
366
+ """Create Amazon ECR key integration
347
367
 
348
368
  Using ignoreWarnings is not recommended and can create integration with missing features
349
369
 
350
- :param amazon_ecr_role_integration_create_dto:
351
- :type amazon_ecr_role_integration_create_dto: AmazonEcrRoleIntegrationCreateDto
370
+ :param amazon_ecr_key_integration_create_dto:
371
+ :type amazon_ecr_key_integration_create_dto: AmazonEcrKeyIntegrationCreateDto
352
372
  :param _request_timeout: timeout setting for this request. If one
353
373
  number provided, it will be total request
354
374
  timeout. It can also be a pair (tuple) of
@@ -371,8 +391,8 @@ class IntegrationsApi:
371
391
  :return: Returns the result object.
372
392
  """ # noqa: E501
373
393
 
374
- _param = self._api_v10_integrations_amazon_ecr_role_post_serialize(
375
- amazon_ecr_role_integration_create_dto=amazon_ecr_role_integration_create_dto,
394
+ _param = self._api_v10_integrations_amazon_ecr_key_post_serialize(
395
+ amazon_ecr_key_integration_create_dto=amazon_ecr_key_integration_create_dto,
376
396
  _request_auth=_request_auth,
377
397
  _content_type=_content_type,
378
398
  _headers=_headers,
@@ -395,9 +415,9 @@ class IntegrationsApi:
395
415
 
396
416
 
397
417
  @validate_call
398
- def api_v10_integrations_amazon_ecr_role_post_with_http_info(
418
+ def api_v10_integrations_amazon_ecr_key_post_with_http_info(
399
419
  self,
400
- amazon_ecr_role_integration_create_dto: Optional[AmazonEcrRoleIntegrationCreateDto] = None,
420
+ amazon_ecr_key_integration_create_dto: Optional[AmazonEcrKeyIntegrationCreateDto] = None,
401
421
  _request_timeout: Union[
402
422
  None,
403
423
  Annotated[StrictFloat, Field(gt=0)],
@@ -411,12 +431,12 @@ class IntegrationsApi:
411
431
  _headers: Optional[Dict[StrictStr, Any]] = None,
412
432
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
413
433
  ) -> ApiResponse[None]:
414
- """Create Amazon ECR Role integration
434
+ """Create Amazon ECR key integration
415
435
 
416
436
  Using ignoreWarnings is not recommended and can create integration with missing features
417
437
 
418
- :param amazon_ecr_role_integration_create_dto:
419
- :type amazon_ecr_role_integration_create_dto: AmazonEcrRoleIntegrationCreateDto
438
+ :param amazon_ecr_key_integration_create_dto:
439
+ :type amazon_ecr_key_integration_create_dto: AmazonEcrKeyIntegrationCreateDto
420
440
  :param _request_timeout: timeout setting for this request. If one
421
441
  number provided, it will be total request
422
442
  timeout. It can also be a pair (tuple) of
@@ -439,8 +459,8 @@ class IntegrationsApi:
439
459
  :return: Returns the result object.
440
460
  """ # noqa: E501
441
461
 
442
- _param = self._api_v10_integrations_amazon_ecr_role_post_serialize(
443
- amazon_ecr_role_integration_create_dto=amazon_ecr_role_integration_create_dto,
462
+ _param = self._api_v10_integrations_amazon_ecr_key_post_serialize(
463
+ amazon_ecr_key_integration_create_dto=amazon_ecr_key_integration_create_dto,
444
464
  _request_auth=_request_auth,
445
465
  _content_type=_content_type,
446
466
  _headers=_headers,
@@ -463,9 +483,9 @@ class IntegrationsApi:
463
483
 
464
484
 
465
485
  @validate_call
466
- def api_v10_integrations_amazon_ecr_role_post_without_preload_content(
486
+ def api_v10_integrations_amazon_ecr_key_post_without_preload_content(
467
487
  self,
468
- amazon_ecr_role_integration_create_dto: Optional[AmazonEcrRoleIntegrationCreateDto] = None,
488
+ amazon_ecr_key_integration_create_dto: Optional[AmazonEcrKeyIntegrationCreateDto] = None,
469
489
  _request_timeout: Union[
470
490
  None,
471
491
  Annotated[StrictFloat, Field(gt=0)],
@@ -479,12 +499,12 @@ class IntegrationsApi:
479
499
  _headers: Optional[Dict[StrictStr, Any]] = None,
480
500
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
481
501
  ) -> RESTResponseType:
482
- """Create Amazon ECR Role integration
502
+ """Create Amazon ECR key integration
483
503
 
484
504
  Using ignoreWarnings is not recommended and can create integration with missing features
485
505
 
486
- :param amazon_ecr_role_integration_create_dto:
487
- :type amazon_ecr_role_integration_create_dto: AmazonEcrRoleIntegrationCreateDto
506
+ :param amazon_ecr_key_integration_create_dto:
507
+ :type amazon_ecr_key_integration_create_dto: AmazonEcrKeyIntegrationCreateDto
488
508
  :param _request_timeout: timeout setting for this request. If one
489
509
  number provided, it will be total request
490
510
  timeout. It can also be a pair (tuple) of
@@ -507,8 +527,8 @@ class IntegrationsApi:
507
527
  :return: Returns the result object.
508
528
  """ # noqa: E501
509
529
 
510
- _param = self._api_v10_integrations_amazon_ecr_role_post_serialize(
511
- amazon_ecr_role_integration_create_dto=amazon_ecr_role_integration_create_dto,
530
+ _param = self._api_v10_integrations_amazon_ecr_key_post_serialize(
531
+ amazon_ecr_key_integration_create_dto=amazon_ecr_key_integration_create_dto,
512
532
  _request_auth=_request_auth,
513
533
  _content_type=_content_type,
514
534
  _headers=_headers,
@@ -526,9 +546,9 @@ class IntegrationsApi:
526
546
  return response_data.response
527
547
 
528
548
 
529
- def _api_v10_integrations_amazon_ecr_role_post_serialize(
549
+ def _api_v10_integrations_amazon_ecr_key_post_serialize(
530
550
  self,
531
- amazon_ecr_role_integration_create_dto,
551
+ amazon_ecr_key_integration_create_dto,
532
552
  _request_auth,
533
553
  _content_type,
534
554
  _headers,
@@ -554,8 +574,8 @@ class IntegrationsApi:
554
574
  # process the header parameters
555
575
  # process the form parameters
556
576
  # process the body parameter
557
- if amazon_ecr_role_integration_create_dto is not None:
558
- _body_params = amazon_ecr_role_integration_create_dto
577
+ if amazon_ecr_key_integration_create_dto is not None:
578
+ _body_params = amazon_ecr_key_integration_create_dto
559
579
 
560
580
 
561
581
  # set the HTTP header `Accept`
@@ -592,7 +612,7 @@ class IntegrationsApi:
592
612
 
593
613
  return self.api_client.param_serialize(
594
614
  method='POST',
595
- resource_path='/api/v1.0/integrations/amazon-ecr/role',
615
+ resource_path='/api/v1.0/integrations/amazon-ecr/key',
596
616
  path_params=_path_params,
597
617
  query_params=_query_params,
598
618
  header_params=_header_params,
@@ -609,9 +629,10 @@ class IntegrationsApi:
609
629
 
610
630
 
611
631
  @validate_call
612
- def api_v10_integrations_azure_acr_id_delete(
632
+ def api_v10_integrations_amazon_ecr_role_id_put(
613
633
  self,
614
634
  id: StrictStr,
635
+ amazon_ecr_role_integration_edit_dto: Optional[AmazonEcrRoleIntegrationEditDto] = None,
615
636
  _request_timeout: Union[
616
637
  None,
617
638
  Annotated[StrictFloat, Field(gt=0)],
@@ -625,11 +646,13 @@ class IntegrationsApi:
625
646
  _headers: Optional[Dict[StrictStr, Any]] = None,
626
647
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
627
648
  ) -> None:
628
- """Delete Azure ACR integration by Id
649
+ """Update Amazon ECR Role integration
629
650
 
630
651
 
631
652
  :param id: (required)
632
653
  :type id: str
654
+ :param amazon_ecr_role_integration_edit_dto:
655
+ :type amazon_ecr_role_integration_edit_dto: AmazonEcrRoleIntegrationEditDto
633
656
  :param _request_timeout: timeout setting for this request. If one
634
657
  number provided, it will be total request
635
658
  timeout. It can also be a pair (tuple) of
@@ -652,8 +675,9 @@ class IntegrationsApi:
652
675
  :return: Returns the result object.
653
676
  """ # noqa: E501
654
677
 
655
- _param = self._api_v10_integrations_azure_acr_id_delete_serialize(
678
+ _param = self._api_v10_integrations_amazon_ecr_role_id_put_serialize(
656
679
  id=id,
680
+ amazon_ecr_role_integration_edit_dto=amazon_ecr_role_integration_edit_dto,
657
681
  _request_auth=_request_auth,
658
682
  _content_type=_content_type,
659
683
  _headers=_headers,
@@ -661,7 +685,9 @@ class IntegrationsApi:
661
685
  )
662
686
 
663
687
  _response_types_map: Dict[str, Optional[str]] = {
664
- '200': None,
688
+ '204': None,
689
+ '400': "IntegrationBadResponseDto",
690
+ '404': "ProblemDetails",
665
691
  }
666
692
  response_data = self.api_client.call_api(
667
693
  *_param,
@@ -675,9 +701,10 @@ class IntegrationsApi:
675
701
 
676
702
 
677
703
  @validate_call
678
- def api_v10_integrations_azure_acr_id_delete_with_http_info(
704
+ def api_v10_integrations_amazon_ecr_role_id_put_with_http_info(
679
705
  self,
680
706
  id: StrictStr,
707
+ amazon_ecr_role_integration_edit_dto: Optional[AmazonEcrRoleIntegrationEditDto] = None,
681
708
  _request_timeout: Union[
682
709
  None,
683
710
  Annotated[StrictFloat, Field(gt=0)],
@@ -691,11 +718,13 @@ class IntegrationsApi:
691
718
  _headers: Optional[Dict[StrictStr, Any]] = None,
692
719
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
693
720
  ) -> ApiResponse[None]:
694
- """Delete Azure ACR integration by Id
721
+ """Update Amazon ECR Role integration
695
722
 
696
723
 
697
724
  :param id: (required)
698
725
  :type id: str
726
+ :param amazon_ecr_role_integration_edit_dto:
727
+ :type amazon_ecr_role_integration_edit_dto: AmazonEcrRoleIntegrationEditDto
699
728
  :param _request_timeout: timeout setting for this request. If one
700
729
  number provided, it will be total request
701
730
  timeout. It can also be a pair (tuple) of
@@ -718,8 +747,9 @@ class IntegrationsApi:
718
747
  :return: Returns the result object.
719
748
  """ # noqa: E501
720
749
 
721
- _param = self._api_v10_integrations_azure_acr_id_delete_serialize(
750
+ _param = self._api_v10_integrations_amazon_ecr_role_id_put_serialize(
722
751
  id=id,
752
+ amazon_ecr_role_integration_edit_dto=amazon_ecr_role_integration_edit_dto,
723
753
  _request_auth=_request_auth,
724
754
  _content_type=_content_type,
725
755
  _headers=_headers,
@@ -727,7 +757,9 @@ class IntegrationsApi:
727
757
  )
728
758
 
729
759
  _response_types_map: Dict[str, Optional[str]] = {
730
- '200': None,
760
+ '204': None,
761
+ '400': "IntegrationBadResponseDto",
762
+ '404': "ProblemDetails",
731
763
  }
732
764
  response_data = self.api_client.call_api(
733
765
  *_param,
@@ -741,9 +773,10 @@ class IntegrationsApi:
741
773
 
742
774
 
743
775
  @validate_call
744
- def api_v10_integrations_azure_acr_id_delete_without_preload_content(
776
+ def api_v10_integrations_amazon_ecr_role_id_put_without_preload_content(
745
777
  self,
746
778
  id: StrictStr,
779
+ amazon_ecr_role_integration_edit_dto: Optional[AmazonEcrRoleIntegrationEditDto] = None,
747
780
  _request_timeout: Union[
748
781
  None,
749
782
  Annotated[StrictFloat, Field(gt=0)],
@@ -757,11 +790,13 @@ class IntegrationsApi:
757
790
  _headers: Optional[Dict[StrictStr, Any]] = None,
758
791
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
759
792
  ) -> RESTResponseType:
760
- """Delete Azure ACR integration by Id
793
+ """Update Amazon ECR Role integration
761
794
 
762
795
 
763
796
  :param id: (required)
764
797
  :type id: str
798
+ :param amazon_ecr_role_integration_edit_dto:
799
+ :type amazon_ecr_role_integration_edit_dto: AmazonEcrRoleIntegrationEditDto
765
800
  :param _request_timeout: timeout setting for this request. If one
766
801
  number provided, it will be total request
767
802
  timeout. It can also be a pair (tuple) of
@@ -784,8 +819,9 @@ class IntegrationsApi:
784
819
  :return: Returns the result object.
785
820
  """ # noqa: E501
786
821
 
787
- _param = self._api_v10_integrations_azure_acr_id_delete_serialize(
822
+ _param = self._api_v10_integrations_amazon_ecr_role_id_put_serialize(
788
823
  id=id,
824
+ amazon_ecr_role_integration_edit_dto=amazon_ecr_role_integration_edit_dto,
789
825
  _request_auth=_request_auth,
790
826
  _content_type=_content_type,
791
827
  _headers=_headers,
@@ -793,7 +829,9 @@ class IntegrationsApi:
793
829
  )
794
830
 
795
831
  _response_types_map: Dict[str, Optional[str]] = {
796
- '200': None,
832
+ '204': None,
833
+ '400': "IntegrationBadResponseDto",
834
+ '404': "ProblemDetails",
797
835
  }
798
836
  response_data = self.api_client.call_api(
799
837
  *_param,
@@ -802,9 +840,10 @@ class IntegrationsApi:
802
840
  return response_data.response
803
841
 
804
842
 
805
- def _api_v10_integrations_azure_acr_id_delete_serialize(
843
+ def _api_v10_integrations_amazon_ecr_role_id_put_serialize(
806
844
  self,
807
845
  id,
846
+ amazon_ecr_role_integration_edit_dto,
808
847
  _request_auth,
809
848
  _content_type,
810
849
  _headers,
@@ -832,9 +871,36 @@ class IntegrationsApi:
832
871
  # process the header parameters
833
872
  # process the form parameters
834
873
  # process the body parameter
874
+ if amazon_ecr_role_integration_edit_dto is not None:
875
+ _body_params = amazon_ecr_role_integration_edit_dto
835
876
 
836
877
 
878
+ # set the HTTP header `Accept`
879
+ if 'Accept' not in _header_params:
880
+ _header_params['Accept'] = self.api_client.select_header_accept(
881
+ [
882
+ 'text/plain',
883
+ 'application/json',
884
+ 'text/json'
885
+ ]
886
+ )
837
887
 
888
+ # set the HTTP header `Content-Type`
889
+ if _content_type:
890
+ _header_params['Content-Type'] = _content_type
891
+ else:
892
+ _default_content_type = (
893
+ self.api_client.select_header_content_type(
894
+ [
895
+ 'application/json-patch+json',
896
+ 'application/json',
897
+ 'text/json',
898
+ 'application/*+json'
899
+ ]
900
+ )
901
+ )
902
+ if _default_content_type is not None:
903
+ _header_params['Content-Type'] = _default_content_type
838
904
 
839
905
  # authentication setting
840
906
  _auth_settings: List[str] = [
@@ -842,8 +908,8 @@ class IntegrationsApi:
842
908
  ]
843
909
 
844
910
  return self.api_client.param_serialize(
845
- method='DELETE',
846
- resource_path='/api/v1.0/integrations/azure-acr/{id}',
911
+ method='PUT',
912
+ resource_path='/api/v1.0/integrations/amazon-ecr/role/{id}',
847
913
  path_params=_path_params,
848
914
  query_params=_query_params,
849
915
  header_params=_header_params,
@@ -860,9 +926,9 @@ class IntegrationsApi:
860
926
 
861
927
 
862
928
  @validate_call
863
- def api_v10_integrations_azure_acr_post(
929
+ def api_v10_integrations_amazon_ecr_role_post(
864
930
  self,
865
- azure_container_registry_integration_create_dto: Optional[AzureContainerRegistryIntegrationCreateDto] = None,
931
+ amazon_ecr_role_integration_create_dto: Optional[AmazonEcrRoleIntegrationCreateDto] = None,
866
932
  _request_timeout: Union[
867
933
  None,
868
934
  Annotated[StrictFloat, Field(gt=0)],
@@ -876,12 +942,12 @@ class IntegrationsApi:
876
942
  _headers: Optional[Dict[StrictStr, Any]] = None,
877
943
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
878
944
  ) -> None:
879
- """Create Azure ACR integration
945
+ """Create Amazon ECR Role integration
880
946
 
881
947
  Using ignoreWarnings is not recommended and can create integration with missing features
882
948
 
883
- :param azure_container_registry_integration_create_dto:
884
- :type azure_container_registry_integration_create_dto: AzureContainerRegistryIntegrationCreateDto
949
+ :param amazon_ecr_role_integration_create_dto:
950
+ :type amazon_ecr_role_integration_create_dto: AmazonEcrRoleIntegrationCreateDto
885
951
  :param _request_timeout: timeout setting for this request. If one
886
952
  number provided, it will be total request
887
953
  timeout. It can also be a pair (tuple) of
@@ -904,8 +970,8 @@ class IntegrationsApi:
904
970
  :return: Returns the result object.
905
971
  """ # noqa: E501
906
972
 
907
- _param = self._api_v10_integrations_azure_acr_post_serialize(
908
- azure_container_registry_integration_create_dto=azure_container_registry_integration_create_dto,
973
+ _param = self._api_v10_integrations_amazon_ecr_role_post_serialize(
974
+ amazon_ecr_role_integration_create_dto=amazon_ecr_role_integration_create_dto,
909
975
  _request_auth=_request_auth,
910
976
  _content_type=_content_type,
911
977
  _headers=_headers,
@@ -928,9 +994,9 @@ class IntegrationsApi:
928
994
 
929
995
 
930
996
  @validate_call
931
- def api_v10_integrations_azure_acr_post_with_http_info(
997
+ def api_v10_integrations_amazon_ecr_role_post_with_http_info(
932
998
  self,
933
- azure_container_registry_integration_create_dto: Optional[AzureContainerRegistryIntegrationCreateDto] = None,
999
+ amazon_ecr_role_integration_create_dto: Optional[AmazonEcrRoleIntegrationCreateDto] = None,
934
1000
  _request_timeout: Union[
935
1001
  None,
936
1002
  Annotated[StrictFloat, Field(gt=0)],
@@ -944,12 +1010,12 @@ class IntegrationsApi:
944
1010
  _headers: Optional[Dict[StrictStr, Any]] = None,
945
1011
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
946
1012
  ) -> ApiResponse[None]:
947
- """Create Azure ACR integration
1013
+ """Create Amazon ECR Role integration
948
1014
 
949
1015
  Using ignoreWarnings is not recommended and can create integration with missing features
950
1016
 
951
- :param azure_container_registry_integration_create_dto:
952
- :type azure_container_registry_integration_create_dto: AzureContainerRegistryIntegrationCreateDto
1017
+ :param amazon_ecr_role_integration_create_dto:
1018
+ :type amazon_ecr_role_integration_create_dto: AmazonEcrRoleIntegrationCreateDto
953
1019
  :param _request_timeout: timeout setting for this request. If one
954
1020
  number provided, it will be total request
955
1021
  timeout. It can also be a pair (tuple) of
@@ -972,8 +1038,8 @@ class IntegrationsApi:
972
1038
  :return: Returns the result object.
973
1039
  """ # noqa: E501
974
1040
 
975
- _param = self._api_v10_integrations_azure_acr_post_serialize(
976
- azure_container_registry_integration_create_dto=azure_container_registry_integration_create_dto,
1041
+ _param = self._api_v10_integrations_amazon_ecr_role_post_serialize(
1042
+ amazon_ecr_role_integration_create_dto=amazon_ecr_role_integration_create_dto,
977
1043
  _request_auth=_request_auth,
978
1044
  _content_type=_content_type,
979
1045
  _headers=_headers,
@@ -996,9 +1062,9 @@ class IntegrationsApi:
996
1062
 
997
1063
 
998
1064
  @validate_call
999
- def api_v10_integrations_azure_acr_post_without_preload_content(
1065
+ def api_v10_integrations_amazon_ecr_role_post_without_preload_content(
1000
1066
  self,
1001
- azure_container_registry_integration_create_dto: Optional[AzureContainerRegistryIntegrationCreateDto] = None,
1067
+ amazon_ecr_role_integration_create_dto: Optional[AmazonEcrRoleIntegrationCreateDto] = None,
1002
1068
  _request_timeout: Union[
1003
1069
  None,
1004
1070
  Annotated[StrictFloat, Field(gt=0)],
@@ -1012,12 +1078,12 @@ class IntegrationsApi:
1012
1078
  _headers: Optional[Dict[StrictStr, Any]] = None,
1013
1079
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1014
1080
  ) -> RESTResponseType:
1015
- """Create Azure ACR integration
1081
+ """Create Amazon ECR Role integration
1016
1082
 
1017
1083
  Using ignoreWarnings is not recommended and can create integration with missing features
1018
1084
 
1019
- :param azure_container_registry_integration_create_dto:
1020
- :type azure_container_registry_integration_create_dto: AzureContainerRegistryIntegrationCreateDto
1085
+ :param amazon_ecr_role_integration_create_dto:
1086
+ :type amazon_ecr_role_integration_create_dto: AmazonEcrRoleIntegrationCreateDto
1021
1087
  :param _request_timeout: timeout setting for this request. If one
1022
1088
  number provided, it will be total request
1023
1089
  timeout. It can also be a pair (tuple) of
@@ -1040,8 +1106,8 @@ class IntegrationsApi:
1040
1106
  :return: Returns the result object.
1041
1107
  """ # noqa: E501
1042
1108
 
1043
- _param = self._api_v10_integrations_azure_acr_post_serialize(
1044
- azure_container_registry_integration_create_dto=azure_container_registry_integration_create_dto,
1109
+ _param = self._api_v10_integrations_amazon_ecr_role_post_serialize(
1110
+ amazon_ecr_role_integration_create_dto=amazon_ecr_role_integration_create_dto,
1045
1111
  _request_auth=_request_auth,
1046
1112
  _content_type=_content_type,
1047
1113
  _headers=_headers,
@@ -1059,9 +1125,9 @@ class IntegrationsApi:
1059
1125
  return response_data.response
1060
1126
 
1061
1127
 
1062
- def _api_v10_integrations_azure_acr_post_serialize(
1128
+ def _api_v10_integrations_amazon_ecr_role_post_serialize(
1063
1129
  self,
1064
- azure_container_registry_integration_create_dto,
1130
+ amazon_ecr_role_integration_create_dto,
1065
1131
  _request_auth,
1066
1132
  _content_type,
1067
1133
  _headers,
@@ -1087,8 +1153,8 @@ class IntegrationsApi:
1087
1153
  # process the header parameters
1088
1154
  # process the form parameters
1089
1155
  # process the body parameter
1090
- if azure_container_registry_integration_create_dto is not None:
1091
- _body_params = azure_container_registry_integration_create_dto
1156
+ if amazon_ecr_role_integration_create_dto is not None:
1157
+ _body_params = amazon_ecr_role_integration_create_dto
1092
1158
 
1093
1159
 
1094
1160
  # set the HTTP header `Accept`
@@ -1125,7 +1191,7 @@ class IntegrationsApi:
1125
1191
 
1126
1192
  return self.api_client.param_serialize(
1127
1193
  method='POST',
1128
- resource_path='/api/v1.0/integrations/azure-acr',
1194
+ resource_path='/api/v1.0/integrations/amazon-ecr/role',
1129
1195
  path_params=_path_params,
1130
1196
  query_params=_query_params,
1131
1197
  header_params=_header_params,
@@ -1142,14 +1208,9 @@ class IntegrationsApi:
1142
1208
 
1143
1209
 
1144
1210
  @validate_call
1145
- def api_v10_integrations_get(
1211
+ def api_v10_integrations_azure_acr_id_delete(
1146
1212
  self,
1147
- sort_column: Optional[StrictStr] = None,
1148
- sort_direction: Optional[Any] = None,
1149
- workspace_ids: Optional[List[StrictStr]] = None,
1150
- page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
1151
- page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
1152
- search: Optional[StrictStr] = None,
1213
+ id: StrictStr,
1153
1214
  _request_timeout: Union[
1154
1215
  None,
1155
1216
  Annotated[StrictFloat, Field(gt=0)],
@@ -1162,22 +1223,12 @@ class IntegrationsApi:
1162
1223
  _content_type: Optional[StrictStr] = None,
1163
1224
  _headers: Optional[Dict[StrictStr, Any]] = None,
1164
1225
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1165
- ) -> List[IntegrationManagementDto]:
1166
- """Get all integrations
1226
+ ) -> None:
1227
+ """Delete Azure ACR integration by Id
1167
1228
 
1168
1229
 
1169
- :param sort_column:
1170
- :type sort_column: str
1171
- :param sort_direction:
1172
- :type sort_direction: ListSortDirection
1173
- :param workspace_ids:
1174
- :type workspace_ids: List[str]
1175
- :param page_number:
1176
- :type page_number: int
1177
- :param page_size:
1178
- :type page_size: int
1179
- :param search:
1180
- :type search: str
1230
+ :param id: (required)
1231
+ :type id: str
1181
1232
  :param _request_timeout: timeout setting for this request. If one
1182
1233
  number provided, it will be total request
1183
1234
  timeout. It can also be a pair (tuple) of
@@ -1200,13 +1251,8 @@ class IntegrationsApi:
1200
1251
  :return: Returns the result object.
1201
1252
  """ # noqa: E501
1202
1253
 
1203
- _param = self._api_v10_integrations_get_serialize(
1204
- sort_column=sort_column,
1205
- sort_direction=sort_direction,
1206
- workspace_ids=workspace_ids,
1207
- page_number=page_number,
1208
- page_size=page_size,
1209
- search=search,
1254
+ _param = self._api_v10_integrations_azure_acr_id_delete_serialize(
1255
+ id=id,
1210
1256
  _request_auth=_request_auth,
1211
1257
  _content_type=_content_type,
1212
1258
  _headers=_headers,
@@ -1214,8 +1260,7 @@ class IntegrationsApi:
1214
1260
  )
1215
1261
 
1216
1262
  _response_types_map: Dict[str, Optional[str]] = {
1217
- '200': "List[IntegrationManagementDto]",
1218
- '400': "ProblemDetails",
1263
+ '200': None,
1219
1264
  }
1220
1265
  response_data = self.api_client.call_api(
1221
1266
  *_param,
@@ -1229,14 +1274,9 @@ class IntegrationsApi:
1229
1274
 
1230
1275
 
1231
1276
  @validate_call
1232
- def api_v10_integrations_get_with_http_info(
1277
+ def api_v10_integrations_azure_acr_id_delete_with_http_info(
1233
1278
  self,
1234
- sort_column: Optional[StrictStr] = None,
1235
- sort_direction: Optional[Any] = None,
1236
- workspace_ids: Optional[List[StrictStr]] = None,
1237
- page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
1238
- page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
1239
- search: Optional[StrictStr] = None,
1279
+ id: StrictStr,
1240
1280
  _request_timeout: Union[
1241
1281
  None,
1242
1282
  Annotated[StrictFloat, Field(gt=0)],
@@ -1249,13 +1289,956 @@ class IntegrationsApi:
1249
1289
  _content_type: Optional[StrictStr] = None,
1250
1290
  _headers: Optional[Dict[StrictStr, Any]] = None,
1251
1291
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1252
- ) -> ApiResponse[List[IntegrationManagementDto]]:
1253
- """Get all integrations
1292
+ ) -> ApiResponse[None]:
1293
+ """Delete Azure ACR integration by Id
1254
1294
 
1255
1295
 
1256
- :param sort_column:
1257
- :type sort_column: str
1258
- :param sort_direction:
1296
+ :param id: (required)
1297
+ :type id: str
1298
+ :param _request_timeout: timeout setting for this request. If one
1299
+ number provided, it will be total request
1300
+ timeout. It can also be a pair (tuple) of
1301
+ (connection, read) timeouts.
1302
+ :type _request_timeout: int, tuple(int, int), optional
1303
+ :param _request_auth: set to override the auth_settings for an a single
1304
+ request; this effectively ignores the
1305
+ authentication in the spec for a single request.
1306
+ :type _request_auth: dict, optional
1307
+ :param _content_type: force content-type for the request.
1308
+ :type _content_type: str, Optional
1309
+ :param _headers: set to override the headers for a single
1310
+ request; this effectively ignores the headers
1311
+ in the spec for a single request.
1312
+ :type _headers: dict, optional
1313
+ :param _host_index: set to override the host_index for a single
1314
+ request; this effectively ignores the host_index
1315
+ in the spec for a single request.
1316
+ :type _host_index: int, optional
1317
+ :return: Returns the result object.
1318
+ """ # noqa: E501
1319
+
1320
+ _param = self._api_v10_integrations_azure_acr_id_delete_serialize(
1321
+ id=id,
1322
+ _request_auth=_request_auth,
1323
+ _content_type=_content_type,
1324
+ _headers=_headers,
1325
+ _host_index=_host_index
1326
+ )
1327
+
1328
+ _response_types_map: Dict[str, Optional[str]] = {
1329
+ '200': None,
1330
+ }
1331
+ response_data = self.api_client.call_api(
1332
+ *_param,
1333
+ _request_timeout=_request_timeout
1334
+ )
1335
+ response_data.read()
1336
+ return self.api_client.response_deserialize(
1337
+ response_data=response_data,
1338
+ response_types_map=_response_types_map,
1339
+ )
1340
+
1341
+
1342
+ @validate_call
1343
+ def api_v10_integrations_azure_acr_id_delete_without_preload_content(
1344
+ self,
1345
+ id: StrictStr,
1346
+ _request_timeout: Union[
1347
+ None,
1348
+ Annotated[StrictFloat, Field(gt=0)],
1349
+ Tuple[
1350
+ Annotated[StrictFloat, Field(gt=0)],
1351
+ Annotated[StrictFloat, Field(gt=0)]
1352
+ ]
1353
+ ] = None,
1354
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1355
+ _content_type: Optional[StrictStr] = None,
1356
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1357
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1358
+ ) -> RESTResponseType:
1359
+ """Delete Azure ACR integration by Id
1360
+
1361
+
1362
+ :param id: (required)
1363
+ :type id: str
1364
+ :param _request_timeout: timeout setting for this request. If one
1365
+ number provided, it will be total request
1366
+ timeout. It can also be a pair (tuple) of
1367
+ (connection, read) timeouts.
1368
+ :type _request_timeout: int, tuple(int, int), optional
1369
+ :param _request_auth: set to override the auth_settings for an a single
1370
+ request; this effectively ignores the
1371
+ authentication in the spec for a single request.
1372
+ :type _request_auth: dict, optional
1373
+ :param _content_type: force content-type for the request.
1374
+ :type _content_type: str, Optional
1375
+ :param _headers: set to override the headers for a single
1376
+ request; this effectively ignores the headers
1377
+ in the spec for a single request.
1378
+ :type _headers: dict, optional
1379
+ :param _host_index: set to override the host_index for a single
1380
+ request; this effectively ignores the host_index
1381
+ in the spec for a single request.
1382
+ :type _host_index: int, optional
1383
+ :return: Returns the result object.
1384
+ """ # noqa: E501
1385
+
1386
+ _param = self._api_v10_integrations_azure_acr_id_delete_serialize(
1387
+ id=id,
1388
+ _request_auth=_request_auth,
1389
+ _content_type=_content_type,
1390
+ _headers=_headers,
1391
+ _host_index=_host_index
1392
+ )
1393
+
1394
+ _response_types_map: Dict[str, Optional[str]] = {
1395
+ '200': None,
1396
+ }
1397
+ response_data = self.api_client.call_api(
1398
+ *_param,
1399
+ _request_timeout=_request_timeout
1400
+ )
1401
+ return response_data.response
1402
+
1403
+
1404
+ def _api_v10_integrations_azure_acr_id_delete_serialize(
1405
+ self,
1406
+ id,
1407
+ _request_auth,
1408
+ _content_type,
1409
+ _headers,
1410
+ _host_index,
1411
+ ) -> RequestSerialized:
1412
+
1413
+ _host = None
1414
+
1415
+ _collection_formats: Dict[str, str] = {
1416
+ }
1417
+
1418
+ _path_params: Dict[str, str] = {}
1419
+ _query_params: List[Tuple[str, str]] = []
1420
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1421
+ _form_params: List[Tuple[str, str]] = []
1422
+ _files: Dict[
1423
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1424
+ ] = {}
1425
+ _body_params: Optional[bytes] = None
1426
+
1427
+ # process the path parameters
1428
+ if id is not None:
1429
+ _path_params['id'] = id
1430
+ # process the query parameters
1431
+ # process the header parameters
1432
+ # process the form parameters
1433
+ # process the body parameter
1434
+
1435
+
1436
+
1437
+
1438
+ # authentication setting
1439
+ _auth_settings: List[str] = [
1440
+ 'BearerAuth'
1441
+ ]
1442
+
1443
+ return self.api_client.param_serialize(
1444
+ method='DELETE',
1445
+ resource_path='/api/v1.0/integrations/azure-acr/{id}',
1446
+ path_params=_path_params,
1447
+ query_params=_query_params,
1448
+ header_params=_header_params,
1449
+ body=_body_params,
1450
+ post_params=_form_params,
1451
+ files=_files,
1452
+ auth_settings=_auth_settings,
1453
+ collection_formats=_collection_formats,
1454
+ _host=_host,
1455
+ _request_auth=_request_auth
1456
+ )
1457
+
1458
+
1459
+
1460
+
1461
+ @validate_call
1462
+ def api_v10_integrations_azure_acr_id_put(
1463
+ self,
1464
+ id: StrictStr,
1465
+ azure_container_registry_integration_edit_dto: Optional[AzureContainerRegistryIntegrationEditDto] = None,
1466
+ _request_timeout: Union[
1467
+ None,
1468
+ Annotated[StrictFloat, Field(gt=0)],
1469
+ Tuple[
1470
+ Annotated[StrictFloat, Field(gt=0)],
1471
+ Annotated[StrictFloat, Field(gt=0)]
1472
+ ]
1473
+ ] = None,
1474
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1475
+ _content_type: Optional[StrictStr] = None,
1476
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1477
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1478
+ ) -> None:
1479
+ """Update Azure GCR integration
1480
+
1481
+
1482
+ :param id: (required)
1483
+ :type id: str
1484
+ :param azure_container_registry_integration_edit_dto:
1485
+ :type azure_container_registry_integration_edit_dto: AzureContainerRegistryIntegrationEditDto
1486
+ :param _request_timeout: timeout setting for this request. If one
1487
+ number provided, it will be total request
1488
+ timeout. It can also be a pair (tuple) of
1489
+ (connection, read) timeouts.
1490
+ :type _request_timeout: int, tuple(int, int), optional
1491
+ :param _request_auth: set to override the auth_settings for an a single
1492
+ request; this effectively ignores the
1493
+ authentication in the spec for a single request.
1494
+ :type _request_auth: dict, optional
1495
+ :param _content_type: force content-type for the request.
1496
+ :type _content_type: str, Optional
1497
+ :param _headers: set to override the headers for a single
1498
+ request; this effectively ignores the headers
1499
+ in the spec for a single request.
1500
+ :type _headers: dict, optional
1501
+ :param _host_index: set to override the host_index for a single
1502
+ request; this effectively ignores the host_index
1503
+ in the spec for a single request.
1504
+ :type _host_index: int, optional
1505
+ :return: Returns the result object.
1506
+ """ # noqa: E501
1507
+
1508
+ _param = self._api_v10_integrations_azure_acr_id_put_serialize(
1509
+ id=id,
1510
+ azure_container_registry_integration_edit_dto=azure_container_registry_integration_edit_dto,
1511
+ _request_auth=_request_auth,
1512
+ _content_type=_content_type,
1513
+ _headers=_headers,
1514
+ _host_index=_host_index
1515
+ )
1516
+
1517
+ _response_types_map: Dict[str, Optional[str]] = {
1518
+ '204': None,
1519
+ '400': "IntegrationBadResponseDto",
1520
+ '404': "ProblemDetails",
1521
+ }
1522
+ response_data = self.api_client.call_api(
1523
+ *_param,
1524
+ _request_timeout=_request_timeout
1525
+ )
1526
+ response_data.read()
1527
+ return self.api_client.response_deserialize(
1528
+ response_data=response_data,
1529
+ response_types_map=_response_types_map,
1530
+ ).data
1531
+
1532
+
1533
+ @validate_call
1534
+ def api_v10_integrations_azure_acr_id_put_with_http_info(
1535
+ self,
1536
+ id: StrictStr,
1537
+ azure_container_registry_integration_edit_dto: Optional[AzureContainerRegistryIntegrationEditDto] = None,
1538
+ _request_timeout: Union[
1539
+ None,
1540
+ Annotated[StrictFloat, Field(gt=0)],
1541
+ Tuple[
1542
+ Annotated[StrictFloat, Field(gt=0)],
1543
+ Annotated[StrictFloat, Field(gt=0)]
1544
+ ]
1545
+ ] = None,
1546
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1547
+ _content_type: Optional[StrictStr] = None,
1548
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1549
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1550
+ ) -> ApiResponse[None]:
1551
+ """Update Azure GCR integration
1552
+
1553
+
1554
+ :param id: (required)
1555
+ :type id: str
1556
+ :param azure_container_registry_integration_edit_dto:
1557
+ :type azure_container_registry_integration_edit_dto: AzureContainerRegistryIntegrationEditDto
1558
+ :param _request_timeout: timeout setting for this request. If one
1559
+ number provided, it will be total request
1560
+ timeout. It can also be a pair (tuple) of
1561
+ (connection, read) timeouts.
1562
+ :type _request_timeout: int, tuple(int, int), optional
1563
+ :param _request_auth: set to override the auth_settings for an a single
1564
+ request; this effectively ignores the
1565
+ authentication in the spec for a single request.
1566
+ :type _request_auth: dict, optional
1567
+ :param _content_type: force content-type for the request.
1568
+ :type _content_type: str, Optional
1569
+ :param _headers: set to override the headers for a single
1570
+ request; this effectively ignores the headers
1571
+ in the spec for a single request.
1572
+ :type _headers: dict, optional
1573
+ :param _host_index: set to override the host_index for a single
1574
+ request; this effectively ignores the host_index
1575
+ in the spec for a single request.
1576
+ :type _host_index: int, optional
1577
+ :return: Returns the result object.
1578
+ """ # noqa: E501
1579
+
1580
+ _param = self._api_v10_integrations_azure_acr_id_put_serialize(
1581
+ id=id,
1582
+ azure_container_registry_integration_edit_dto=azure_container_registry_integration_edit_dto,
1583
+ _request_auth=_request_auth,
1584
+ _content_type=_content_type,
1585
+ _headers=_headers,
1586
+ _host_index=_host_index
1587
+ )
1588
+
1589
+ _response_types_map: Dict[str, Optional[str]] = {
1590
+ '204': None,
1591
+ '400': "IntegrationBadResponseDto",
1592
+ '404': "ProblemDetails",
1593
+ }
1594
+ response_data = self.api_client.call_api(
1595
+ *_param,
1596
+ _request_timeout=_request_timeout
1597
+ )
1598
+ response_data.read()
1599
+ return self.api_client.response_deserialize(
1600
+ response_data=response_data,
1601
+ response_types_map=_response_types_map,
1602
+ )
1603
+
1604
+
1605
+ @validate_call
1606
+ def api_v10_integrations_azure_acr_id_put_without_preload_content(
1607
+ self,
1608
+ id: StrictStr,
1609
+ azure_container_registry_integration_edit_dto: Optional[AzureContainerRegistryIntegrationEditDto] = None,
1610
+ _request_timeout: Union[
1611
+ None,
1612
+ Annotated[StrictFloat, Field(gt=0)],
1613
+ Tuple[
1614
+ Annotated[StrictFloat, Field(gt=0)],
1615
+ Annotated[StrictFloat, Field(gt=0)]
1616
+ ]
1617
+ ] = None,
1618
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1619
+ _content_type: Optional[StrictStr] = None,
1620
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1621
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1622
+ ) -> RESTResponseType:
1623
+ """Update Azure GCR integration
1624
+
1625
+
1626
+ :param id: (required)
1627
+ :type id: str
1628
+ :param azure_container_registry_integration_edit_dto:
1629
+ :type azure_container_registry_integration_edit_dto: AzureContainerRegistryIntegrationEditDto
1630
+ :param _request_timeout: timeout setting for this request. If one
1631
+ number provided, it will be total request
1632
+ timeout. It can also be a pair (tuple) of
1633
+ (connection, read) timeouts.
1634
+ :type _request_timeout: int, tuple(int, int), optional
1635
+ :param _request_auth: set to override the auth_settings for an a single
1636
+ request; this effectively ignores the
1637
+ authentication in the spec for a single request.
1638
+ :type _request_auth: dict, optional
1639
+ :param _content_type: force content-type for the request.
1640
+ :type _content_type: str, Optional
1641
+ :param _headers: set to override the headers for a single
1642
+ request; this effectively ignores the headers
1643
+ in the spec for a single request.
1644
+ :type _headers: dict, optional
1645
+ :param _host_index: set to override the host_index for a single
1646
+ request; this effectively ignores the host_index
1647
+ in the spec for a single request.
1648
+ :type _host_index: int, optional
1649
+ :return: Returns the result object.
1650
+ """ # noqa: E501
1651
+
1652
+ _param = self._api_v10_integrations_azure_acr_id_put_serialize(
1653
+ id=id,
1654
+ azure_container_registry_integration_edit_dto=azure_container_registry_integration_edit_dto,
1655
+ _request_auth=_request_auth,
1656
+ _content_type=_content_type,
1657
+ _headers=_headers,
1658
+ _host_index=_host_index
1659
+ )
1660
+
1661
+ _response_types_map: Dict[str, Optional[str]] = {
1662
+ '204': None,
1663
+ '400': "IntegrationBadResponseDto",
1664
+ '404': "ProblemDetails",
1665
+ }
1666
+ response_data = self.api_client.call_api(
1667
+ *_param,
1668
+ _request_timeout=_request_timeout
1669
+ )
1670
+ return response_data.response
1671
+
1672
+
1673
+ def _api_v10_integrations_azure_acr_id_put_serialize(
1674
+ self,
1675
+ id,
1676
+ azure_container_registry_integration_edit_dto,
1677
+ _request_auth,
1678
+ _content_type,
1679
+ _headers,
1680
+ _host_index,
1681
+ ) -> RequestSerialized:
1682
+
1683
+ _host = None
1684
+
1685
+ _collection_formats: Dict[str, str] = {
1686
+ }
1687
+
1688
+ _path_params: Dict[str, str] = {}
1689
+ _query_params: List[Tuple[str, str]] = []
1690
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1691
+ _form_params: List[Tuple[str, str]] = []
1692
+ _files: Dict[
1693
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1694
+ ] = {}
1695
+ _body_params: Optional[bytes] = None
1696
+
1697
+ # process the path parameters
1698
+ if id is not None:
1699
+ _path_params['id'] = id
1700
+ # process the query parameters
1701
+ # process the header parameters
1702
+ # process the form parameters
1703
+ # process the body parameter
1704
+ if azure_container_registry_integration_edit_dto is not None:
1705
+ _body_params = azure_container_registry_integration_edit_dto
1706
+
1707
+
1708
+ # set the HTTP header `Accept`
1709
+ if 'Accept' not in _header_params:
1710
+ _header_params['Accept'] = self.api_client.select_header_accept(
1711
+ [
1712
+ 'text/plain',
1713
+ 'application/json',
1714
+ 'text/json'
1715
+ ]
1716
+ )
1717
+
1718
+ # set the HTTP header `Content-Type`
1719
+ if _content_type:
1720
+ _header_params['Content-Type'] = _content_type
1721
+ else:
1722
+ _default_content_type = (
1723
+ self.api_client.select_header_content_type(
1724
+ [
1725
+ 'application/json-patch+json',
1726
+ 'application/json',
1727
+ 'text/json',
1728
+ 'application/*+json'
1729
+ ]
1730
+ )
1731
+ )
1732
+ if _default_content_type is not None:
1733
+ _header_params['Content-Type'] = _default_content_type
1734
+
1735
+ # authentication setting
1736
+ _auth_settings: List[str] = [
1737
+ 'BearerAuth'
1738
+ ]
1739
+
1740
+ return self.api_client.param_serialize(
1741
+ method='PUT',
1742
+ resource_path='/api/v1.0/integrations/azure-acr/{id}',
1743
+ path_params=_path_params,
1744
+ query_params=_query_params,
1745
+ header_params=_header_params,
1746
+ body=_body_params,
1747
+ post_params=_form_params,
1748
+ files=_files,
1749
+ auth_settings=_auth_settings,
1750
+ collection_formats=_collection_formats,
1751
+ _host=_host,
1752
+ _request_auth=_request_auth
1753
+ )
1754
+
1755
+
1756
+
1757
+
1758
+ @validate_call
1759
+ def api_v10_integrations_azure_acr_post(
1760
+ self,
1761
+ azure_container_registry_integration_create_dto: Optional[AzureContainerRegistryIntegrationCreateDto] = None,
1762
+ _request_timeout: Union[
1763
+ None,
1764
+ Annotated[StrictFloat, Field(gt=0)],
1765
+ Tuple[
1766
+ Annotated[StrictFloat, Field(gt=0)],
1767
+ Annotated[StrictFloat, Field(gt=0)]
1768
+ ]
1769
+ ] = None,
1770
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1771
+ _content_type: Optional[StrictStr] = None,
1772
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1773
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1774
+ ) -> None:
1775
+ """Create Azure ACR integration
1776
+
1777
+ Using ignoreWarnings is not recommended and can create integration with missing features
1778
+
1779
+ :param azure_container_registry_integration_create_dto:
1780
+ :type azure_container_registry_integration_create_dto: AzureContainerRegistryIntegrationCreateDto
1781
+ :param _request_timeout: timeout setting for this request. If one
1782
+ number provided, it will be total request
1783
+ timeout. It can also be a pair (tuple) of
1784
+ (connection, read) timeouts.
1785
+ :type _request_timeout: int, tuple(int, int), optional
1786
+ :param _request_auth: set to override the auth_settings for an a single
1787
+ request; this effectively ignores the
1788
+ authentication in the spec for a single request.
1789
+ :type _request_auth: dict, optional
1790
+ :param _content_type: force content-type for the request.
1791
+ :type _content_type: str, Optional
1792
+ :param _headers: set to override the headers for a single
1793
+ request; this effectively ignores the headers
1794
+ in the spec for a single request.
1795
+ :type _headers: dict, optional
1796
+ :param _host_index: set to override the host_index for a single
1797
+ request; this effectively ignores the host_index
1798
+ in the spec for a single request.
1799
+ :type _host_index: int, optional
1800
+ :return: Returns the result object.
1801
+ """ # noqa: E501
1802
+
1803
+ _param = self._api_v10_integrations_azure_acr_post_serialize(
1804
+ azure_container_registry_integration_create_dto=azure_container_registry_integration_create_dto,
1805
+ _request_auth=_request_auth,
1806
+ _content_type=_content_type,
1807
+ _headers=_headers,
1808
+ _host_index=_host_index
1809
+ )
1810
+
1811
+ _response_types_map: Dict[str, Optional[str]] = {
1812
+ '201': None,
1813
+ '400': "IntegrationBadResponseDto",
1814
+ }
1815
+ response_data = self.api_client.call_api(
1816
+ *_param,
1817
+ _request_timeout=_request_timeout
1818
+ )
1819
+ response_data.read()
1820
+ return self.api_client.response_deserialize(
1821
+ response_data=response_data,
1822
+ response_types_map=_response_types_map,
1823
+ ).data
1824
+
1825
+
1826
+ @validate_call
1827
+ def api_v10_integrations_azure_acr_post_with_http_info(
1828
+ self,
1829
+ azure_container_registry_integration_create_dto: Optional[AzureContainerRegistryIntegrationCreateDto] = None,
1830
+ _request_timeout: Union[
1831
+ None,
1832
+ Annotated[StrictFloat, Field(gt=0)],
1833
+ Tuple[
1834
+ Annotated[StrictFloat, Field(gt=0)],
1835
+ Annotated[StrictFloat, Field(gt=0)]
1836
+ ]
1837
+ ] = None,
1838
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1839
+ _content_type: Optional[StrictStr] = None,
1840
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1841
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1842
+ ) -> ApiResponse[None]:
1843
+ """Create Azure ACR integration
1844
+
1845
+ Using ignoreWarnings is not recommended and can create integration with missing features
1846
+
1847
+ :param azure_container_registry_integration_create_dto:
1848
+ :type azure_container_registry_integration_create_dto: AzureContainerRegistryIntegrationCreateDto
1849
+ :param _request_timeout: timeout setting for this request. If one
1850
+ number provided, it will be total request
1851
+ timeout. It can also be a pair (tuple) of
1852
+ (connection, read) timeouts.
1853
+ :type _request_timeout: int, tuple(int, int), optional
1854
+ :param _request_auth: set to override the auth_settings for an a single
1855
+ request; this effectively ignores the
1856
+ authentication in the spec for a single request.
1857
+ :type _request_auth: dict, optional
1858
+ :param _content_type: force content-type for the request.
1859
+ :type _content_type: str, Optional
1860
+ :param _headers: set to override the headers for a single
1861
+ request; this effectively ignores the headers
1862
+ in the spec for a single request.
1863
+ :type _headers: dict, optional
1864
+ :param _host_index: set to override the host_index for a single
1865
+ request; this effectively ignores the host_index
1866
+ in the spec for a single request.
1867
+ :type _host_index: int, optional
1868
+ :return: Returns the result object.
1869
+ """ # noqa: E501
1870
+
1871
+ _param = self._api_v10_integrations_azure_acr_post_serialize(
1872
+ azure_container_registry_integration_create_dto=azure_container_registry_integration_create_dto,
1873
+ _request_auth=_request_auth,
1874
+ _content_type=_content_type,
1875
+ _headers=_headers,
1876
+ _host_index=_host_index
1877
+ )
1878
+
1879
+ _response_types_map: Dict[str, Optional[str]] = {
1880
+ '201': None,
1881
+ '400': "IntegrationBadResponseDto",
1882
+ }
1883
+ response_data = self.api_client.call_api(
1884
+ *_param,
1885
+ _request_timeout=_request_timeout
1886
+ )
1887
+ response_data.read()
1888
+ return self.api_client.response_deserialize(
1889
+ response_data=response_data,
1890
+ response_types_map=_response_types_map,
1891
+ )
1892
+
1893
+
1894
+ @validate_call
1895
+ def api_v10_integrations_azure_acr_post_without_preload_content(
1896
+ self,
1897
+ azure_container_registry_integration_create_dto: Optional[AzureContainerRegistryIntegrationCreateDto] = None,
1898
+ _request_timeout: Union[
1899
+ None,
1900
+ Annotated[StrictFloat, Field(gt=0)],
1901
+ Tuple[
1902
+ Annotated[StrictFloat, Field(gt=0)],
1903
+ Annotated[StrictFloat, Field(gt=0)]
1904
+ ]
1905
+ ] = None,
1906
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1907
+ _content_type: Optional[StrictStr] = None,
1908
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1909
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1910
+ ) -> RESTResponseType:
1911
+ """Create Azure ACR integration
1912
+
1913
+ Using ignoreWarnings is not recommended and can create integration with missing features
1914
+
1915
+ :param azure_container_registry_integration_create_dto:
1916
+ :type azure_container_registry_integration_create_dto: AzureContainerRegistryIntegrationCreateDto
1917
+ :param _request_timeout: timeout setting for this request. If one
1918
+ number provided, it will be total request
1919
+ timeout. It can also be a pair (tuple) of
1920
+ (connection, read) timeouts.
1921
+ :type _request_timeout: int, tuple(int, int), optional
1922
+ :param _request_auth: set to override the auth_settings for an a single
1923
+ request; this effectively ignores the
1924
+ authentication in the spec for a single request.
1925
+ :type _request_auth: dict, optional
1926
+ :param _content_type: force content-type for the request.
1927
+ :type _content_type: str, Optional
1928
+ :param _headers: set to override the headers for a single
1929
+ request; this effectively ignores the headers
1930
+ in the spec for a single request.
1931
+ :type _headers: dict, optional
1932
+ :param _host_index: set to override the host_index for a single
1933
+ request; this effectively ignores the host_index
1934
+ in the spec for a single request.
1935
+ :type _host_index: int, optional
1936
+ :return: Returns the result object.
1937
+ """ # noqa: E501
1938
+
1939
+ _param = self._api_v10_integrations_azure_acr_post_serialize(
1940
+ azure_container_registry_integration_create_dto=azure_container_registry_integration_create_dto,
1941
+ _request_auth=_request_auth,
1942
+ _content_type=_content_type,
1943
+ _headers=_headers,
1944
+ _host_index=_host_index
1945
+ )
1946
+
1947
+ _response_types_map: Dict[str, Optional[str]] = {
1948
+ '201': None,
1949
+ '400': "IntegrationBadResponseDto",
1950
+ }
1951
+ response_data = self.api_client.call_api(
1952
+ *_param,
1953
+ _request_timeout=_request_timeout
1954
+ )
1955
+ return response_data.response
1956
+
1957
+
1958
+ def _api_v10_integrations_azure_acr_post_serialize(
1959
+ self,
1960
+ azure_container_registry_integration_create_dto,
1961
+ _request_auth,
1962
+ _content_type,
1963
+ _headers,
1964
+ _host_index,
1965
+ ) -> RequestSerialized:
1966
+
1967
+ _host = None
1968
+
1969
+ _collection_formats: Dict[str, str] = {
1970
+ }
1971
+
1972
+ _path_params: Dict[str, str] = {}
1973
+ _query_params: List[Tuple[str, str]] = []
1974
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1975
+ _form_params: List[Tuple[str, str]] = []
1976
+ _files: Dict[
1977
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1978
+ ] = {}
1979
+ _body_params: Optional[bytes] = None
1980
+
1981
+ # process the path parameters
1982
+ # process the query parameters
1983
+ # process the header parameters
1984
+ # process the form parameters
1985
+ # process the body parameter
1986
+ if azure_container_registry_integration_create_dto is not None:
1987
+ _body_params = azure_container_registry_integration_create_dto
1988
+
1989
+
1990
+ # set the HTTP header `Accept`
1991
+ if 'Accept' not in _header_params:
1992
+ _header_params['Accept'] = self.api_client.select_header_accept(
1993
+ [
1994
+ 'text/plain',
1995
+ 'application/json',
1996
+ 'text/json'
1997
+ ]
1998
+ )
1999
+
2000
+ # set the HTTP header `Content-Type`
2001
+ if _content_type:
2002
+ _header_params['Content-Type'] = _content_type
2003
+ else:
2004
+ _default_content_type = (
2005
+ self.api_client.select_header_content_type(
2006
+ [
2007
+ 'application/json-patch+json',
2008
+ 'application/json',
2009
+ 'text/json',
2010
+ 'application/*+json'
2011
+ ]
2012
+ )
2013
+ )
2014
+ if _default_content_type is not None:
2015
+ _header_params['Content-Type'] = _default_content_type
2016
+
2017
+ # authentication setting
2018
+ _auth_settings: List[str] = [
2019
+ 'BearerAuth'
2020
+ ]
2021
+
2022
+ return self.api_client.param_serialize(
2023
+ method='POST',
2024
+ resource_path='/api/v1.0/integrations/azure-acr',
2025
+ path_params=_path_params,
2026
+ query_params=_query_params,
2027
+ header_params=_header_params,
2028
+ body=_body_params,
2029
+ post_params=_form_params,
2030
+ files=_files,
2031
+ auth_settings=_auth_settings,
2032
+ collection_formats=_collection_formats,
2033
+ _host=_host,
2034
+ _request_auth=_request_auth
2035
+ )
2036
+
2037
+
2038
+
2039
+
2040
+ @validate_call
2041
+ def api_v10_integrations_get(
2042
+ self,
2043
+ sort_column: Optional[StrictStr] = None,
2044
+ sort_direction: Optional[Any] = None,
2045
+ workspace_ids: Optional[List[StrictStr]] = None,
2046
+ page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
2047
+ page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
2048
+ search: Optional[StrictStr] = None,
2049
+ _request_timeout: Union[
2050
+ None,
2051
+ Annotated[StrictFloat, Field(gt=0)],
2052
+ Tuple[
2053
+ Annotated[StrictFloat, Field(gt=0)],
2054
+ Annotated[StrictFloat, Field(gt=0)]
2055
+ ]
2056
+ ] = None,
2057
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2058
+ _content_type: Optional[StrictStr] = None,
2059
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2060
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2061
+ ) -> List[IntegrationManagementDto]:
2062
+ """Get all integrations
2063
+
2064
+
2065
+ :param sort_column:
2066
+ :type sort_column: str
2067
+ :param sort_direction:
2068
+ :type sort_direction: ListSortDirection
2069
+ :param workspace_ids:
2070
+ :type workspace_ids: List[str]
2071
+ :param page_number:
2072
+ :type page_number: int
2073
+ :param page_size:
2074
+ :type page_size: int
2075
+ :param search:
2076
+ :type search: str
2077
+ :param _request_timeout: timeout setting for this request. If one
2078
+ number provided, it will be total request
2079
+ timeout. It can also be a pair (tuple) of
2080
+ (connection, read) timeouts.
2081
+ :type _request_timeout: int, tuple(int, int), optional
2082
+ :param _request_auth: set to override the auth_settings for an a single
2083
+ request; this effectively ignores the
2084
+ authentication in the spec for a single request.
2085
+ :type _request_auth: dict, optional
2086
+ :param _content_type: force content-type for the request.
2087
+ :type _content_type: str, Optional
2088
+ :param _headers: set to override the headers for a single
2089
+ request; this effectively ignores the headers
2090
+ in the spec for a single request.
2091
+ :type _headers: dict, optional
2092
+ :param _host_index: set to override the host_index for a single
2093
+ request; this effectively ignores the host_index
2094
+ in the spec for a single request.
2095
+ :type _host_index: int, optional
2096
+ :return: Returns the result object.
2097
+ """ # noqa: E501
2098
+
2099
+ _param = self._api_v10_integrations_get_serialize(
2100
+ sort_column=sort_column,
2101
+ sort_direction=sort_direction,
2102
+ workspace_ids=workspace_ids,
2103
+ page_number=page_number,
2104
+ page_size=page_size,
2105
+ search=search,
2106
+ _request_auth=_request_auth,
2107
+ _content_type=_content_type,
2108
+ _headers=_headers,
2109
+ _host_index=_host_index
2110
+ )
2111
+
2112
+ _response_types_map: Dict[str, Optional[str]] = {
2113
+ '200': "List[IntegrationManagementDto]",
2114
+ '400': "ProblemDetails",
2115
+ }
2116
+ response_data = self.api_client.call_api(
2117
+ *_param,
2118
+ _request_timeout=_request_timeout
2119
+ )
2120
+ response_data.read()
2121
+ return self.api_client.response_deserialize(
2122
+ response_data=response_data,
2123
+ response_types_map=_response_types_map,
2124
+ ).data
2125
+
2126
+
2127
+ @validate_call
2128
+ def api_v10_integrations_get_with_http_info(
2129
+ self,
2130
+ sort_column: Optional[StrictStr] = None,
2131
+ sort_direction: Optional[Any] = None,
2132
+ workspace_ids: Optional[List[StrictStr]] = None,
2133
+ page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
2134
+ page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
2135
+ search: Optional[StrictStr] = None,
2136
+ _request_timeout: Union[
2137
+ None,
2138
+ Annotated[StrictFloat, Field(gt=0)],
2139
+ Tuple[
2140
+ Annotated[StrictFloat, Field(gt=0)],
2141
+ Annotated[StrictFloat, Field(gt=0)]
2142
+ ]
2143
+ ] = None,
2144
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2145
+ _content_type: Optional[StrictStr] = None,
2146
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2147
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2148
+ ) -> ApiResponse[List[IntegrationManagementDto]]:
2149
+ """Get all integrations
2150
+
2151
+
2152
+ :param sort_column:
2153
+ :type sort_column: str
2154
+ :param sort_direction:
2155
+ :type sort_direction: ListSortDirection
2156
+ :param workspace_ids:
2157
+ :type workspace_ids: List[str]
2158
+ :param page_number:
2159
+ :type page_number: int
2160
+ :param page_size:
2161
+ :type page_size: int
2162
+ :param search:
2163
+ :type search: str
2164
+ :param _request_timeout: timeout setting for this request. If one
2165
+ number provided, it will be total request
2166
+ timeout. It can also be a pair (tuple) of
2167
+ (connection, read) timeouts.
2168
+ :type _request_timeout: int, tuple(int, int), optional
2169
+ :param _request_auth: set to override the auth_settings for an a single
2170
+ request; this effectively ignores the
2171
+ authentication in the spec for a single request.
2172
+ :type _request_auth: dict, optional
2173
+ :param _content_type: force content-type for the request.
2174
+ :type _content_type: str, Optional
2175
+ :param _headers: set to override the headers for a single
2176
+ request; this effectively ignores the headers
2177
+ in the spec for a single request.
2178
+ :type _headers: dict, optional
2179
+ :param _host_index: set to override the host_index for a single
2180
+ request; this effectively ignores the host_index
2181
+ in the spec for a single request.
2182
+ :type _host_index: int, optional
2183
+ :return: Returns the result object.
2184
+ """ # noqa: E501
2185
+
2186
+ _param = self._api_v10_integrations_get_serialize(
2187
+ sort_column=sort_column,
2188
+ sort_direction=sort_direction,
2189
+ workspace_ids=workspace_ids,
2190
+ page_number=page_number,
2191
+ page_size=page_size,
2192
+ search=search,
2193
+ _request_auth=_request_auth,
2194
+ _content_type=_content_type,
2195
+ _headers=_headers,
2196
+ _host_index=_host_index
2197
+ )
2198
+
2199
+ _response_types_map: Dict[str, Optional[str]] = {
2200
+ '200': "List[IntegrationManagementDto]",
2201
+ '400': "ProblemDetails",
2202
+ }
2203
+ response_data = self.api_client.call_api(
2204
+ *_param,
2205
+ _request_timeout=_request_timeout
2206
+ )
2207
+ response_data.read()
2208
+ return self.api_client.response_deserialize(
2209
+ response_data=response_data,
2210
+ response_types_map=_response_types_map,
2211
+ )
2212
+
2213
+
2214
+ @validate_call
2215
+ def api_v10_integrations_get_without_preload_content(
2216
+ self,
2217
+ sort_column: Optional[StrictStr] = None,
2218
+ sort_direction: Optional[Any] = None,
2219
+ workspace_ids: Optional[List[StrictStr]] = None,
2220
+ page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
2221
+ page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
2222
+ search: Optional[StrictStr] = None,
2223
+ _request_timeout: Union[
2224
+ None,
2225
+ Annotated[StrictFloat, Field(gt=0)],
2226
+ Tuple[
2227
+ Annotated[StrictFloat, Field(gt=0)],
2228
+ Annotated[StrictFloat, Field(gt=0)]
2229
+ ]
2230
+ ] = None,
2231
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2232
+ _content_type: Optional[StrictStr] = None,
2233
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2234
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2235
+ ) -> RESTResponseType:
2236
+ """Get all integrations
2237
+
2238
+
2239
+ :param sort_column:
2240
+ :type sort_column: str
2241
+ :param sort_direction:
1259
2242
  :type sort_direction: ListSortDirection
1260
2243
  :param workspace_ids:
1261
2244
  :type workspace_ids: List[str]
@@ -1287,13 +2270,425 @@ class IntegrationsApi:
1287
2270
  :return: Returns the result object.
1288
2271
  """ # noqa: E501
1289
2272
 
1290
- _param = self._api_v10_integrations_get_serialize(
1291
- sort_column=sort_column,
1292
- sort_direction=sort_direction,
1293
- workspace_ids=workspace_ids,
1294
- page_number=page_number,
1295
- page_size=page_size,
1296
- search=search,
2273
+ _param = self._api_v10_integrations_get_serialize(
2274
+ sort_column=sort_column,
2275
+ sort_direction=sort_direction,
2276
+ workspace_ids=workspace_ids,
2277
+ page_number=page_number,
2278
+ page_size=page_size,
2279
+ search=search,
2280
+ _request_auth=_request_auth,
2281
+ _content_type=_content_type,
2282
+ _headers=_headers,
2283
+ _host_index=_host_index
2284
+ )
2285
+
2286
+ _response_types_map: Dict[str, Optional[str]] = {
2287
+ '200': "List[IntegrationManagementDto]",
2288
+ '400': "ProblemDetails",
2289
+ }
2290
+ response_data = self.api_client.call_api(
2291
+ *_param,
2292
+ _request_timeout=_request_timeout
2293
+ )
2294
+ return response_data.response
2295
+
2296
+
2297
+ def _api_v10_integrations_get_serialize(
2298
+ self,
2299
+ sort_column,
2300
+ sort_direction,
2301
+ workspace_ids,
2302
+ page_number,
2303
+ page_size,
2304
+ search,
2305
+ _request_auth,
2306
+ _content_type,
2307
+ _headers,
2308
+ _host_index,
2309
+ ) -> RequestSerialized:
2310
+
2311
+ _host = None
2312
+
2313
+ _collection_formats: Dict[str, str] = {
2314
+ 'workspaceIds': 'multi',
2315
+ }
2316
+
2317
+ _path_params: Dict[str, str] = {}
2318
+ _query_params: List[Tuple[str, str]] = []
2319
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2320
+ _form_params: List[Tuple[str, str]] = []
2321
+ _files: Dict[
2322
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2323
+ ] = {}
2324
+ _body_params: Optional[bytes] = None
2325
+
2326
+ # process the path parameters
2327
+ # process the query parameters
2328
+ if sort_column is not None:
2329
+
2330
+ _query_params.append(('sortColumn', sort_column))
2331
+
2332
+ if sort_direction is not None:
2333
+
2334
+ _query_params.append(('sortDirection', sort_direction.value))
2335
+
2336
+ if workspace_ids is not None:
2337
+
2338
+ _query_params.append(('workspaceIds', workspace_ids))
2339
+
2340
+ if page_number is not None:
2341
+
2342
+ _query_params.append(('pageNumber', page_number))
2343
+
2344
+ if page_size is not None:
2345
+
2346
+ _query_params.append(('pageSize', page_size))
2347
+
2348
+ if search is not None:
2349
+
2350
+ _query_params.append(('search', search))
2351
+
2352
+ # process the header parameters
2353
+ # process the form parameters
2354
+ # process the body parameter
2355
+
2356
+
2357
+ # set the HTTP header `Accept`
2358
+ if 'Accept' not in _header_params:
2359
+ _header_params['Accept'] = self.api_client.select_header_accept(
2360
+ [
2361
+ 'text/plain',
2362
+ 'application/json',
2363
+ 'text/json'
2364
+ ]
2365
+ )
2366
+
2367
+
2368
+ # authentication setting
2369
+ _auth_settings: List[str] = [
2370
+ 'BearerAuth'
2371
+ ]
2372
+
2373
+ return self.api_client.param_serialize(
2374
+ method='GET',
2375
+ resource_path='/api/v1.0/integrations',
2376
+ path_params=_path_params,
2377
+ query_params=_query_params,
2378
+ header_params=_header_params,
2379
+ body=_body_params,
2380
+ post_params=_form_params,
2381
+ files=_files,
2382
+ auth_settings=_auth_settings,
2383
+ collection_formats=_collection_formats,
2384
+ _host=_host,
2385
+ _request_auth=_request_auth
2386
+ )
2387
+
2388
+
2389
+
2390
+
2391
+ @validate_call
2392
+ def api_v10_integrations_google_gcr_id_delete(
2393
+ self,
2394
+ id: StrictStr,
2395
+ _request_timeout: Union[
2396
+ None,
2397
+ Annotated[StrictFloat, Field(gt=0)],
2398
+ Tuple[
2399
+ Annotated[StrictFloat, Field(gt=0)],
2400
+ Annotated[StrictFloat, Field(gt=0)]
2401
+ ]
2402
+ ] = None,
2403
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2404
+ _content_type: Optional[StrictStr] = None,
2405
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2406
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2407
+ ) -> None:
2408
+ """Delete Google GCR integration by Id
2409
+
2410
+
2411
+ :param id: (required)
2412
+ :type id: str
2413
+ :param _request_timeout: timeout setting for this request. If one
2414
+ number provided, it will be total request
2415
+ timeout. It can also be a pair (tuple) of
2416
+ (connection, read) timeouts.
2417
+ :type _request_timeout: int, tuple(int, int), optional
2418
+ :param _request_auth: set to override the auth_settings for an a single
2419
+ request; this effectively ignores the
2420
+ authentication in the spec for a single request.
2421
+ :type _request_auth: dict, optional
2422
+ :param _content_type: force content-type for the request.
2423
+ :type _content_type: str, Optional
2424
+ :param _headers: set to override the headers for a single
2425
+ request; this effectively ignores the headers
2426
+ in the spec for a single request.
2427
+ :type _headers: dict, optional
2428
+ :param _host_index: set to override the host_index for a single
2429
+ request; this effectively ignores the host_index
2430
+ in the spec for a single request.
2431
+ :type _host_index: int, optional
2432
+ :return: Returns the result object.
2433
+ """ # noqa: E501
2434
+
2435
+ _param = self._api_v10_integrations_google_gcr_id_delete_serialize(
2436
+ id=id,
2437
+ _request_auth=_request_auth,
2438
+ _content_type=_content_type,
2439
+ _headers=_headers,
2440
+ _host_index=_host_index
2441
+ )
2442
+
2443
+ _response_types_map: Dict[str, Optional[str]] = {
2444
+ '200': None,
2445
+ }
2446
+ response_data = self.api_client.call_api(
2447
+ *_param,
2448
+ _request_timeout=_request_timeout
2449
+ )
2450
+ response_data.read()
2451
+ return self.api_client.response_deserialize(
2452
+ response_data=response_data,
2453
+ response_types_map=_response_types_map,
2454
+ ).data
2455
+
2456
+
2457
+ @validate_call
2458
+ def api_v10_integrations_google_gcr_id_delete_with_http_info(
2459
+ self,
2460
+ id: StrictStr,
2461
+ _request_timeout: Union[
2462
+ None,
2463
+ Annotated[StrictFloat, Field(gt=0)],
2464
+ Tuple[
2465
+ Annotated[StrictFloat, Field(gt=0)],
2466
+ Annotated[StrictFloat, Field(gt=0)]
2467
+ ]
2468
+ ] = None,
2469
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2470
+ _content_type: Optional[StrictStr] = None,
2471
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2472
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2473
+ ) -> ApiResponse[None]:
2474
+ """Delete Google GCR integration by Id
2475
+
2476
+
2477
+ :param id: (required)
2478
+ :type id: str
2479
+ :param _request_timeout: timeout setting for this request. If one
2480
+ number provided, it will be total request
2481
+ timeout. It can also be a pair (tuple) of
2482
+ (connection, read) timeouts.
2483
+ :type _request_timeout: int, tuple(int, int), optional
2484
+ :param _request_auth: set to override the auth_settings for an a single
2485
+ request; this effectively ignores the
2486
+ authentication in the spec for a single request.
2487
+ :type _request_auth: dict, optional
2488
+ :param _content_type: force content-type for the request.
2489
+ :type _content_type: str, Optional
2490
+ :param _headers: set to override the headers for a single
2491
+ request; this effectively ignores the headers
2492
+ in the spec for a single request.
2493
+ :type _headers: dict, optional
2494
+ :param _host_index: set to override the host_index for a single
2495
+ request; this effectively ignores the host_index
2496
+ in the spec for a single request.
2497
+ :type _host_index: int, optional
2498
+ :return: Returns the result object.
2499
+ """ # noqa: E501
2500
+
2501
+ _param = self._api_v10_integrations_google_gcr_id_delete_serialize(
2502
+ id=id,
2503
+ _request_auth=_request_auth,
2504
+ _content_type=_content_type,
2505
+ _headers=_headers,
2506
+ _host_index=_host_index
2507
+ )
2508
+
2509
+ _response_types_map: Dict[str, Optional[str]] = {
2510
+ '200': None,
2511
+ }
2512
+ response_data = self.api_client.call_api(
2513
+ *_param,
2514
+ _request_timeout=_request_timeout
2515
+ )
2516
+ response_data.read()
2517
+ return self.api_client.response_deserialize(
2518
+ response_data=response_data,
2519
+ response_types_map=_response_types_map,
2520
+ )
2521
+
2522
+
2523
+ @validate_call
2524
+ def api_v10_integrations_google_gcr_id_delete_without_preload_content(
2525
+ self,
2526
+ id: StrictStr,
2527
+ _request_timeout: Union[
2528
+ None,
2529
+ Annotated[StrictFloat, Field(gt=0)],
2530
+ Tuple[
2531
+ Annotated[StrictFloat, Field(gt=0)],
2532
+ Annotated[StrictFloat, Field(gt=0)]
2533
+ ]
2534
+ ] = None,
2535
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2536
+ _content_type: Optional[StrictStr] = None,
2537
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2538
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2539
+ ) -> RESTResponseType:
2540
+ """Delete Google GCR integration by Id
2541
+
2542
+
2543
+ :param id: (required)
2544
+ :type id: str
2545
+ :param _request_timeout: timeout setting for this request. If one
2546
+ number provided, it will be total request
2547
+ timeout. It can also be a pair (tuple) of
2548
+ (connection, read) timeouts.
2549
+ :type _request_timeout: int, tuple(int, int), optional
2550
+ :param _request_auth: set to override the auth_settings for an a single
2551
+ request; this effectively ignores the
2552
+ authentication in the spec for a single request.
2553
+ :type _request_auth: dict, optional
2554
+ :param _content_type: force content-type for the request.
2555
+ :type _content_type: str, Optional
2556
+ :param _headers: set to override the headers for a single
2557
+ request; this effectively ignores the headers
2558
+ in the spec for a single request.
2559
+ :type _headers: dict, optional
2560
+ :param _host_index: set to override the host_index for a single
2561
+ request; this effectively ignores the host_index
2562
+ in the spec for a single request.
2563
+ :type _host_index: int, optional
2564
+ :return: Returns the result object.
2565
+ """ # noqa: E501
2566
+
2567
+ _param = self._api_v10_integrations_google_gcr_id_delete_serialize(
2568
+ id=id,
2569
+ _request_auth=_request_auth,
2570
+ _content_type=_content_type,
2571
+ _headers=_headers,
2572
+ _host_index=_host_index
2573
+ )
2574
+
2575
+ _response_types_map: Dict[str, Optional[str]] = {
2576
+ '200': None,
2577
+ }
2578
+ response_data = self.api_client.call_api(
2579
+ *_param,
2580
+ _request_timeout=_request_timeout
2581
+ )
2582
+ return response_data.response
2583
+
2584
+
2585
+ def _api_v10_integrations_google_gcr_id_delete_serialize(
2586
+ self,
2587
+ id,
2588
+ _request_auth,
2589
+ _content_type,
2590
+ _headers,
2591
+ _host_index,
2592
+ ) -> RequestSerialized:
2593
+
2594
+ _host = None
2595
+
2596
+ _collection_formats: Dict[str, str] = {
2597
+ }
2598
+
2599
+ _path_params: Dict[str, str] = {}
2600
+ _query_params: List[Tuple[str, str]] = []
2601
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2602
+ _form_params: List[Tuple[str, str]] = []
2603
+ _files: Dict[
2604
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2605
+ ] = {}
2606
+ _body_params: Optional[bytes] = None
2607
+
2608
+ # process the path parameters
2609
+ if id is not None:
2610
+ _path_params['id'] = id
2611
+ # process the query parameters
2612
+ # process the header parameters
2613
+ # process the form parameters
2614
+ # process the body parameter
2615
+
2616
+
2617
+
2618
+
2619
+ # authentication setting
2620
+ _auth_settings: List[str] = [
2621
+ 'BearerAuth'
2622
+ ]
2623
+
2624
+ return self.api_client.param_serialize(
2625
+ method='DELETE',
2626
+ resource_path='/api/v1.0/integrations/google-gcr/{id}',
2627
+ path_params=_path_params,
2628
+ query_params=_query_params,
2629
+ header_params=_header_params,
2630
+ body=_body_params,
2631
+ post_params=_form_params,
2632
+ files=_files,
2633
+ auth_settings=_auth_settings,
2634
+ collection_formats=_collection_formats,
2635
+ _host=_host,
2636
+ _request_auth=_request_auth
2637
+ )
2638
+
2639
+
2640
+
2641
+
2642
+ @validate_call
2643
+ def api_v10_integrations_google_gcr_id_put(
2644
+ self,
2645
+ id: StrictStr,
2646
+ google_container_registry_integration_edit_dto: Optional[GoogleContainerRegistryIntegrationEditDto] = None,
2647
+ _request_timeout: Union[
2648
+ None,
2649
+ Annotated[StrictFloat, Field(gt=0)],
2650
+ Tuple[
2651
+ Annotated[StrictFloat, Field(gt=0)],
2652
+ Annotated[StrictFloat, Field(gt=0)]
2653
+ ]
2654
+ ] = None,
2655
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2656
+ _content_type: Optional[StrictStr] = None,
2657
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2658
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2659
+ ) -> None:
2660
+ """Update Google GCR integration
2661
+
2662
+
2663
+ :param id: (required)
2664
+ :type id: str
2665
+ :param google_container_registry_integration_edit_dto:
2666
+ :type google_container_registry_integration_edit_dto: GoogleContainerRegistryIntegrationEditDto
2667
+ :param _request_timeout: timeout setting for this request. If one
2668
+ number provided, it will be total request
2669
+ timeout. It can also be a pair (tuple) of
2670
+ (connection, read) timeouts.
2671
+ :type _request_timeout: int, tuple(int, int), optional
2672
+ :param _request_auth: set to override the auth_settings for an a single
2673
+ request; this effectively ignores the
2674
+ authentication in the spec for a single request.
2675
+ :type _request_auth: dict, optional
2676
+ :param _content_type: force content-type for the request.
2677
+ :type _content_type: str, Optional
2678
+ :param _headers: set to override the headers for a single
2679
+ request; this effectively ignores the headers
2680
+ in the spec for a single request.
2681
+ :type _headers: dict, optional
2682
+ :param _host_index: set to override the host_index for a single
2683
+ request; this effectively ignores the host_index
2684
+ in the spec for a single request.
2685
+ :type _host_index: int, optional
2686
+ :return: Returns the result object.
2687
+ """ # noqa: E501
2688
+
2689
+ _param = self._api_v10_integrations_google_gcr_id_put_serialize(
2690
+ id=id,
2691
+ google_container_registry_integration_edit_dto=google_container_registry_integration_edit_dto,
1297
2692
  _request_auth=_request_auth,
1298
2693
  _content_type=_content_type,
1299
2694
  _headers=_headers,
@@ -1301,8 +2696,81 @@ class IntegrationsApi:
1301
2696
  )
1302
2697
 
1303
2698
  _response_types_map: Dict[str, Optional[str]] = {
1304
- '200': "List[IntegrationManagementDto]",
1305
- '400': "ProblemDetails",
2699
+ '204': None,
2700
+ '400': "IntegrationBadResponseDto",
2701
+ '404': "ProblemDetails",
2702
+ }
2703
+ response_data = self.api_client.call_api(
2704
+ *_param,
2705
+ _request_timeout=_request_timeout
2706
+ )
2707
+ response_data.read()
2708
+ return self.api_client.response_deserialize(
2709
+ response_data=response_data,
2710
+ response_types_map=_response_types_map,
2711
+ ).data
2712
+
2713
+
2714
+ @validate_call
2715
+ def api_v10_integrations_google_gcr_id_put_with_http_info(
2716
+ self,
2717
+ id: StrictStr,
2718
+ google_container_registry_integration_edit_dto: Optional[GoogleContainerRegistryIntegrationEditDto] = None,
2719
+ _request_timeout: Union[
2720
+ None,
2721
+ Annotated[StrictFloat, Field(gt=0)],
2722
+ Tuple[
2723
+ Annotated[StrictFloat, Field(gt=0)],
2724
+ Annotated[StrictFloat, Field(gt=0)]
2725
+ ]
2726
+ ] = None,
2727
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2728
+ _content_type: Optional[StrictStr] = None,
2729
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2730
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2731
+ ) -> ApiResponse[None]:
2732
+ """Update Google GCR integration
2733
+
2734
+
2735
+ :param id: (required)
2736
+ :type id: str
2737
+ :param google_container_registry_integration_edit_dto:
2738
+ :type google_container_registry_integration_edit_dto: GoogleContainerRegistryIntegrationEditDto
2739
+ :param _request_timeout: timeout setting for this request. If one
2740
+ number provided, it will be total request
2741
+ timeout. It can also be a pair (tuple) of
2742
+ (connection, read) timeouts.
2743
+ :type _request_timeout: int, tuple(int, int), optional
2744
+ :param _request_auth: set to override the auth_settings for an a single
2745
+ request; this effectively ignores the
2746
+ authentication in the spec for a single request.
2747
+ :type _request_auth: dict, optional
2748
+ :param _content_type: force content-type for the request.
2749
+ :type _content_type: str, Optional
2750
+ :param _headers: set to override the headers for a single
2751
+ request; this effectively ignores the headers
2752
+ in the spec for a single request.
2753
+ :type _headers: dict, optional
2754
+ :param _host_index: set to override the host_index for a single
2755
+ request; this effectively ignores the host_index
2756
+ in the spec for a single request.
2757
+ :type _host_index: int, optional
2758
+ :return: Returns the result object.
2759
+ """ # noqa: E501
2760
+
2761
+ _param = self._api_v10_integrations_google_gcr_id_put_serialize(
2762
+ id=id,
2763
+ google_container_registry_integration_edit_dto=google_container_registry_integration_edit_dto,
2764
+ _request_auth=_request_auth,
2765
+ _content_type=_content_type,
2766
+ _headers=_headers,
2767
+ _host_index=_host_index
2768
+ )
2769
+
2770
+ _response_types_map: Dict[str, Optional[str]] = {
2771
+ '204': None,
2772
+ '400': "IntegrationBadResponseDto",
2773
+ '404': "ProblemDetails",
1306
2774
  }
1307
2775
  response_data = self.api_client.call_api(
1308
2776
  *_param,
@@ -1316,14 +2784,10 @@ class IntegrationsApi:
1316
2784
 
1317
2785
 
1318
2786
  @validate_call
1319
- def api_v10_integrations_get_without_preload_content(
2787
+ def api_v10_integrations_google_gcr_id_put_without_preload_content(
1320
2788
  self,
1321
- sort_column: Optional[StrictStr] = None,
1322
- sort_direction: Optional[Any] = None,
1323
- workspace_ids: Optional[List[StrictStr]] = None,
1324
- page_number: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = None,
1325
- page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None,
1326
- search: Optional[StrictStr] = None,
2789
+ id: StrictStr,
2790
+ google_container_registry_integration_edit_dto: Optional[GoogleContainerRegistryIntegrationEditDto] = None,
1327
2791
  _request_timeout: Union[
1328
2792
  None,
1329
2793
  Annotated[StrictFloat, Field(gt=0)],
@@ -1337,21 +2801,13 @@ class IntegrationsApi:
1337
2801
  _headers: Optional[Dict[StrictStr, Any]] = None,
1338
2802
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1339
2803
  ) -> RESTResponseType:
1340
- """Get all integrations
2804
+ """Update Google GCR integration
1341
2805
 
1342
2806
 
1343
- :param sort_column:
1344
- :type sort_column: str
1345
- :param sort_direction:
1346
- :type sort_direction: ListSortDirection
1347
- :param workspace_ids:
1348
- :type workspace_ids: List[str]
1349
- :param page_number:
1350
- :type page_number: int
1351
- :param page_size:
1352
- :type page_size: int
1353
- :param search:
1354
- :type search: str
2807
+ :param id: (required)
2808
+ :type id: str
2809
+ :param google_container_registry_integration_edit_dto:
2810
+ :type google_container_registry_integration_edit_dto: GoogleContainerRegistryIntegrationEditDto
1355
2811
  :param _request_timeout: timeout setting for this request. If one
1356
2812
  number provided, it will be total request
1357
2813
  timeout. It can also be a pair (tuple) of
@@ -1374,13 +2830,9 @@ class IntegrationsApi:
1374
2830
  :return: Returns the result object.
1375
2831
  """ # noqa: E501
1376
2832
 
1377
- _param = self._api_v10_integrations_get_serialize(
1378
- sort_column=sort_column,
1379
- sort_direction=sort_direction,
1380
- workspace_ids=workspace_ids,
1381
- page_number=page_number,
1382
- page_size=page_size,
1383
- search=search,
2833
+ _param = self._api_v10_integrations_google_gcr_id_put_serialize(
2834
+ id=id,
2835
+ google_container_registry_integration_edit_dto=google_container_registry_integration_edit_dto,
1384
2836
  _request_auth=_request_auth,
1385
2837
  _content_type=_content_type,
1386
2838
  _headers=_headers,
@@ -1388,8 +2840,9 @@ class IntegrationsApi:
1388
2840
  )
1389
2841
 
1390
2842
  _response_types_map: Dict[str, Optional[str]] = {
1391
- '200': "List[IntegrationManagementDto]",
1392
- '400': "ProblemDetails",
2843
+ '204': None,
2844
+ '400': "IntegrationBadResponseDto",
2845
+ '404': "ProblemDetails",
1393
2846
  }
1394
2847
  response_data = self.api_client.call_api(
1395
2848
  *_param,
@@ -1398,14 +2851,10 @@ class IntegrationsApi:
1398
2851
  return response_data.response
1399
2852
 
1400
2853
 
1401
- def _api_v10_integrations_get_serialize(
2854
+ def _api_v10_integrations_google_gcr_id_put_serialize(
1402
2855
  self,
1403
- sort_column,
1404
- sort_direction,
1405
- workspace_ids,
1406
- page_number,
1407
- page_size,
1408
- search,
2856
+ id,
2857
+ google_container_registry_integration_edit_dto,
1409
2858
  _request_auth,
1410
2859
  _content_type,
1411
2860
  _headers,
@@ -1415,7 +2864,6 @@ class IntegrationsApi:
1415
2864
  _host = None
1416
2865
 
1417
2866
  _collection_formats: Dict[str, str] = {
1418
- 'workspaceIds': 'multi',
1419
2867
  }
1420
2868
 
1421
2869
  _path_params: Dict[str, str] = {}
@@ -1428,34 +2876,14 @@ class IntegrationsApi:
1428
2876
  _body_params: Optional[bytes] = None
1429
2877
 
1430
2878
  # process the path parameters
2879
+ if id is not None:
2880
+ _path_params['id'] = id
1431
2881
  # process the query parameters
1432
- if sort_column is not None:
1433
-
1434
- _query_params.append(('sortColumn', sort_column))
1435
-
1436
- if sort_direction is not None:
1437
-
1438
- _query_params.append(('sortDirection', sort_direction.value))
1439
-
1440
- if workspace_ids is not None:
1441
-
1442
- _query_params.append(('workspaceIds', workspace_ids))
1443
-
1444
- if page_number is not None:
1445
-
1446
- _query_params.append(('pageNumber', page_number))
1447
-
1448
- if page_size is not None:
1449
-
1450
- _query_params.append(('pageSize', page_size))
1451
-
1452
- if search is not None:
1453
-
1454
- _query_params.append(('search', search))
1455
-
1456
2882
  # process the header parameters
1457
2883
  # process the form parameters
1458
2884
  # process the body parameter
2885
+ if google_container_registry_integration_edit_dto is not None:
2886
+ _body_params = google_container_registry_integration_edit_dto
1459
2887
 
1460
2888
 
1461
2889
  # set the HTTP header `Accept`
@@ -1468,6 +2896,22 @@ class IntegrationsApi:
1468
2896
  ]
1469
2897
  )
1470
2898
 
2899
+ # set the HTTP header `Content-Type`
2900
+ if _content_type:
2901
+ _header_params['Content-Type'] = _content_type
2902
+ else:
2903
+ _default_content_type = (
2904
+ self.api_client.select_header_content_type(
2905
+ [
2906
+ 'application/json-patch+json',
2907
+ 'application/json',
2908
+ 'text/json',
2909
+ 'application/*+json'
2910
+ ]
2911
+ )
2912
+ )
2913
+ if _default_content_type is not None:
2914
+ _header_params['Content-Type'] = _default_content_type
1471
2915
 
1472
2916
  # authentication setting
1473
2917
  _auth_settings: List[str] = [
@@ -1475,8 +2919,8 @@ class IntegrationsApi:
1475
2919
  ]
1476
2920
 
1477
2921
  return self.api_client.param_serialize(
1478
- method='GET',
1479
- resource_path='/api/v1.0/integrations',
2922
+ method='PUT',
2923
+ resource_path='/api/v1.0/integrations/google-gcr/{id}',
1480
2924
  path_params=_path_params,
1481
2925
  query_params=_query_params,
1482
2926
  header_params=_header_params,
@@ -1493,9 +2937,9 @@ class IntegrationsApi:
1493
2937
 
1494
2938
 
1495
2939
  @validate_call
1496
- def api_v10_integrations_google_gcr_id_delete(
2940
+ def api_v10_integrations_google_gcr_post(
1497
2941
  self,
1498
- id: StrictStr,
2942
+ google_container_registry_integration_create_dto: Optional[GoogleContainerRegistryIntegrationCreateDto] = None,
1499
2943
  _request_timeout: Union[
1500
2944
  None,
1501
2945
  Annotated[StrictFloat, Field(gt=0)],
@@ -1509,11 +2953,12 @@ class IntegrationsApi:
1509
2953
  _headers: Optional[Dict[StrictStr, Any]] = None,
1510
2954
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1511
2955
  ) -> None:
1512
- """Delete Google GCR integration by Id
2956
+ """Create Google GCR integration
1513
2957
 
2958
+ Using ignoreWarnings is not recommended and can create integration with missing features
1514
2959
 
1515
- :param id: (required)
1516
- :type id: str
2960
+ :param google_container_registry_integration_create_dto:
2961
+ :type google_container_registry_integration_create_dto: GoogleContainerRegistryIntegrationCreateDto
1517
2962
  :param _request_timeout: timeout setting for this request. If one
1518
2963
  number provided, it will be total request
1519
2964
  timeout. It can also be a pair (tuple) of
@@ -1536,8 +2981,8 @@ class IntegrationsApi:
1536
2981
  :return: Returns the result object.
1537
2982
  """ # noqa: E501
1538
2983
 
1539
- _param = self._api_v10_integrations_google_gcr_id_delete_serialize(
1540
- id=id,
2984
+ _param = self._api_v10_integrations_google_gcr_post_serialize(
2985
+ google_container_registry_integration_create_dto=google_container_registry_integration_create_dto,
1541
2986
  _request_auth=_request_auth,
1542
2987
  _content_type=_content_type,
1543
2988
  _headers=_headers,
@@ -1545,7 +2990,8 @@ class IntegrationsApi:
1545
2990
  )
1546
2991
 
1547
2992
  _response_types_map: Dict[str, Optional[str]] = {
1548
- '200': None,
2993
+ '201': None,
2994
+ '400': "IntegrationBadResponseDto",
1549
2995
  }
1550
2996
  response_data = self.api_client.call_api(
1551
2997
  *_param,
@@ -1559,9 +3005,9 @@ class IntegrationsApi:
1559
3005
 
1560
3006
 
1561
3007
  @validate_call
1562
- def api_v10_integrations_google_gcr_id_delete_with_http_info(
3008
+ def api_v10_integrations_google_gcr_post_with_http_info(
1563
3009
  self,
1564
- id: StrictStr,
3010
+ google_container_registry_integration_create_dto: Optional[GoogleContainerRegistryIntegrationCreateDto] = None,
1565
3011
  _request_timeout: Union[
1566
3012
  None,
1567
3013
  Annotated[StrictFloat, Field(gt=0)],
@@ -1575,11 +3021,12 @@ class IntegrationsApi:
1575
3021
  _headers: Optional[Dict[StrictStr, Any]] = None,
1576
3022
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1577
3023
  ) -> ApiResponse[None]:
1578
- """Delete Google GCR integration by Id
3024
+ """Create Google GCR integration
1579
3025
 
3026
+ Using ignoreWarnings is not recommended and can create integration with missing features
1580
3027
 
1581
- :param id: (required)
1582
- :type id: str
3028
+ :param google_container_registry_integration_create_dto:
3029
+ :type google_container_registry_integration_create_dto: GoogleContainerRegistryIntegrationCreateDto
1583
3030
  :param _request_timeout: timeout setting for this request. If one
1584
3031
  number provided, it will be total request
1585
3032
  timeout. It can also be a pair (tuple) of
@@ -1602,8 +3049,8 @@ class IntegrationsApi:
1602
3049
  :return: Returns the result object.
1603
3050
  """ # noqa: E501
1604
3051
 
1605
- _param = self._api_v10_integrations_google_gcr_id_delete_serialize(
1606
- id=id,
3052
+ _param = self._api_v10_integrations_google_gcr_post_serialize(
3053
+ google_container_registry_integration_create_dto=google_container_registry_integration_create_dto,
1607
3054
  _request_auth=_request_auth,
1608
3055
  _content_type=_content_type,
1609
3056
  _headers=_headers,
@@ -1611,7 +3058,8 @@ class IntegrationsApi:
1611
3058
  )
1612
3059
 
1613
3060
  _response_types_map: Dict[str, Optional[str]] = {
1614
- '200': None,
3061
+ '201': None,
3062
+ '400': "IntegrationBadResponseDto",
1615
3063
  }
1616
3064
  response_data = self.api_client.call_api(
1617
3065
  *_param,
@@ -1625,9 +3073,9 @@ class IntegrationsApi:
1625
3073
 
1626
3074
 
1627
3075
  @validate_call
1628
- def api_v10_integrations_google_gcr_id_delete_without_preload_content(
3076
+ def api_v10_integrations_google_gcr_post_without_preload_content(
1629
3077
  self,
1630
- id: StrictStr,
3078
+ google_container_registry_integration_create_dto: Optional[GoogleContainerRegistryIntegrationCreateDto] = None,
1631
3079
  _request_timeout: Union[
1632
3080
  None,
1633
3081
  Annotated[StrictFloat, Field(gt=0)],
@@ -1641,11 +3089,12 @@ class IntegrationsApi:
1641
3089
  _headers: Optional[Dict[StrictStr, Any]] = None,
1642
3090
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1643
3091
  ) -> RESTResponseType:
1644
- """Delete Google GCR integration by Id
3092
+ """Create Google GCR integration
1645
3093
 
3094
+ Using ignoreWarnings is not recommended and can create integration with missing features
1646
3095
 
1647
- :param id: (required)
1648
- :type id: str
3096
+ :param google_container_registry_integration_create_dto:
3097
+ :type google_container_registry_integration_create_dto: GoogleContainerRegistryIntegrationCreateDto
1649
3098
  :param _request_timeout: timeout setting for this request. If one
1650
3099
  number provided, it will be total request
1651
3100
  timeout. It can also be a pair (tuple) of
@@ -1668,8 +3117,8 @@ class IntegrationsApi:
1668
3117
  :return: Returns the result object.
1669
3118
  """ # noqa: E501
1670
3119
 
1671
- _param = self._api_v10_integrations_google_gcr_id_delete_serialize(
1672
- id=id,
3120
+ _param = self._api_v10_integrations_google_gcr_post_serialize(
3121
+ google_container_registry_integration_create_dto=google_container_registry_integration_create_dto,
1673
3122
  _request_auth=_request_auth,
1674
3123
  _content_type=_content_type,
1675
3124
  _headers=_headers,
@@ -1677,7 +3126,8 @@ class IntegrationsApi:
1677
3126
  )
1678
3127
 
1679
3128
  _response_types_map: Dict[str, Optional[str]] = {
1680
- '200': None,
3129
+ '201': None,
3130
+ '400': "IntegrationBadResponseDto",
1681
3131
  }
1682
3132
  response_data = self.api_client.call_api(
1683
3133
  *_param,
@@ -1686,9 +3136,9 @@ class IntegrationsApi:
1686
3136
  return response_data.response
1687
3137
 
1688
3138
 
1689
- def _api_v10_integrations_google_gcr_id_delete_serialize(
3139
+ def _api_v10_integrations_google_gcr_post_serialize(
1690
3140
  self,
1691
- id,
3141
+ google_container_registry_integration_create_dto,
1692
3142
  _request_auth,
1693
3143
  _content_type,
1694
3144
  _headers,
@@ -1710,15 +3160,40 @@ class IntegrationsApi:
1710
3160
  _body_params: Optional[bytes] = None
1711
3161
 
1712
3162
  # process the path parameters
1713
- if id is not None:
1714
- _path_params['id'] = id
1715
3163
  # process the query parameters
1716
3164
  # process the header parameters
1717
3165
  # process the form parameters
1718
3166
  # process the body parameter
3167
+ if google_container_registry_integration_create_dto is not None:
3168
+ _body_params = google_container_registry_integration_create_dto
1719
3169
 
1720
3170
 
3171
+ # set the HTTP header `Accept`
3172
+ if 'Accept' not in _header_params:
3173
+ _header_params['Accept'] = self.api_client.select_header_accept(
3174
+ [
3175
+ 'text/plain',
3176
+ 'application/json',
3177
+ 'text/json'
3178
+ ]
3179
+ )
1721
3180
 
3181
+ # set the HTTP header `Content-Type`
3182
+ if _content_type:
3183
+ _header_params['Content-Type'] = _content_type
3184
+ else:
3185
+ _default_content_type = (
3186
+ self.api_client.select_header_content_type(
3187
+ [
3188
+ 'application/json-patch+json',
3189
+ 'application/json',
3190
+ 'text/json',
3191
+ 'application/*+json'
3192
+ ]
3193
+ )
3194
+ )
3195
+ if _default_content_type is not None:
3196
+ _header_params['Content-Type'] = _default_content_type
1722
3197
 
1723
3198
  # authentication setting
1724
3199
  _auth_settings: List[str] = [
@@ -1726,8 +3201,8 @@ class IntegrationsApi:
1726
3201
  ]
1727
3202
 
1728
3203
  return self.api_client.param_serialize(
1729
- method='DELETE',
1730
- resource_path='/api/v1.0/integrations/google-gcr/{id}',
3204
+ method='POST',
3205
+ resource_path='/api/v1.0/integrations/google-gcr',
1731
3206
  path_params=_path_params,
1732
3207
  query_params=_query_params,
1733
3208
  header_params=_header_params,
@@ -1744,9 +3219,9 @@ class IntegrationsApi:
1744
3219
 
1745
3220
 
1746
3221
  @validate_call
1747
- def api_v10_integrations_google_gcr_post(
3222
+ def api_v10_integrations_id_delete(
1748
3223
  self,
1749
- google_container_registry_integration_create_dto: Optional[GoogleContainerRegistryIntegrationCreateDto] = None,
3224
+ id: StrictStr,
1750
3225
  _request_timeout: Union[
1751
3226
  None,
1752
3227
  Annotated[StrictFloat, Field(gt=0)],
@@ -1760,12 +3235,11 @@ class IntegrationsApi:
1760
3235
  _headers: Optional[Dict[StrictStr, Any]] = None,
1761
3236
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1762
3237
  ) -> None:
1763
- """Create Google GCR integration
3238
+ """Delete integration by id
1764
3239
 
1765
- Using ignoreWarnings is not recommended and can create integration with missing features
1766
3240
 
1767
- :param google_container_registry_integration_create_dto:
1768
- :type google_container_registry_integration_create_dto: GoogleContainerRegistryIntegrationCreateDto
3241
+ :param id: (required)
3242
+ :type id: str
1769
3243
  :param _request_timeout: timeout setting for this request. If one
1770
3244
  number provided, it will be total request
1771
3245
  timeout. It can also be a pair (tuple) of
@@ -1788,8 +3262,8 @@ class IntegrationsApi:
1788
3262
  :return: Returns the result object.
1789
3263
  """ # noqa: E501
1790
3264
 
1791
- _param = self._api_v10_integrations_google_gcr_post_serialize(
1792
- google_container_registry_integration_create_dto=google_container_registry_integration_create_dto,
3265
+ _param = self._api_v10_integrations_id_delete_serialize(
3266
+ id=id,
1793
3267
  _request_auth=_request_auth,
1794
3268
  _content_type=_content_type,
1795
3269
  _headers=_headers,
@@ -1797,8 +3271,8 @@ class IntegrationsApi:
1797
3271
  )
1798
3272
 
1799
3273
  _response_types_map: Dict[str, Optional[str]] = {
1800
- '201': None,
1801
- '400': "IntegrationBadResponseDto",
3274
+ '200': None,
3275
+ '404': "ProblemDetails",
1802
3276
  }
1803
3277
  response_data = self.api_client.call_api(
1804
3278
  *_param,
@@ -1812,9 +3286,9 @@ class IntegrationsApi:
1812
3286
 
1813
3287
 
1814
3288
  @validate_call
1815
- def api_v10_integrations_google_gcr_post_with_http_info(
3289
+ def api_v10_integrations_id_delete_with_http_info(
1816
3290
  self,
1817
- google_container_registry_integration_create_dto: Optional[GoogleContainerRegistryIntegrationCreateDto] = None,
3291
+ id: StrictStr,
1818
3292
  _request_timeout: Union[
1819
3293
  None,
1820
3294
  Annotated[StrictFloat, Field(gt=0)],
@@ -1828,12 +3302,11 @@ class IntegrationsApi:
1828
3302
  _headers: Optional[Dict[StrictStr, Any]] = None,
1829
3303
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1830
3304
  ) -> ApiResponse[None]:
1831
- """Create Google GCR integration
3305
+ """Delete integration by id
1832
3306
 
1833
- Using ignoreWarnings is not recommended and can create integration with missing features
1834
3307
 
1835
- :param google_container_registry_integration_create_dto:
1836
- :type google_container_registry_integration_create_dto: GoogleContainerRegistryIntegrationCreateDto
3308
+ :param id: (required)
3309
+ :type id: str
1837
3310
  :param _request_timeout: timeout setting for this request. If one
1838
3311
  number provided, it will be total request
1839
3312
  timeout. It can also be a pair (tuple) of
@@ -1856,8 +3329,8 @@ class IntegrationsApi:
1856
3329
  :return: Returns the result object.
1857
3330
  """ # noqa: E501
1858
3331
 
1859
- _param = self._api_v10_integrations_google_gcr_post_serialize(
1860
- google_container_registry_integration_create_dto=google_container_registry_integration_create_dto,
3332
+ _param = self._api_v10_integrations_id_delete_serialize(
3333
+ id=id,
1861
3334
  _request_auth=_request_auth,
1862
3335
  _content_type=_content_type,
1863
3336
  _headers=_headers,
@@ -1865,8 +3338,8 @@ class IntegrationsApi:
1865
3338
  )
1866
3339
 
1867
3340
  _response_types_map: Dict[str, Optional[str]] = {
1868
- '201': None,
1869
- '400': "IntegrationBadResponseDto",
3341
+ '200': None,
3342
+ '404': "ProblemDetails",
1870
3343
  }
1871
3344
  response_data = self.api_client.call_api(
1872
3345
  *_param,
@@ -1880,9 +3353,9 @@ class IntegrationsApi:
1880
3353
 
1881
3354
 
1882
3355
  @validate_call
1883
- def api_v10_integrations_google_gcr_post_without_preload_content(
3356
+ def api_v10_integrations_id_delete_without_preload_content(
1884
3357
  self,
1885
- google_container_registry_integration_create_dto: Optional[GoogleContainerRegistryIntegrationCreateDto] = None,
3358
+ id: StrictStr,
1886
3359
  _request_timeout: Union[
1887
3360
  None,
1888
3361
  Annotated[StrictFloat, Field(gt=0)],
@@ -1896,12 +3369,11 @@ class IntegrationsApi:
1896
3369
  _headers: Optional[Dict[StrictStr, Any]] = None,
1897
3370
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1898
3371
  ) -> RESTResponseType:
1899
- """Create Google GCR integration
3372
+ """Delete integration by id
1900
3373
 
1901
- Using ignoreWarnings is not recommended and can create integration with missing features
1902
3374
 
1903
- :param google_container_registry_integration_create_dto:
1904
- :type google_container_registry_integration_create_dto: GoogleContainerRegistryIntegrationCreateDto
3375
+ :param id: (required)
3376
+ :type id: str
1905
3377
  :param _request_timeout: timeout setting for this request. If one
1906
3378
  number provided, it will be total request
1907
3379
  timeout. It can also be a pair (tuple) of
@@ -1924,8 +3396,8 @@ class IntegrationsApi:
1924
3396
  :return: Returns the result object.
1925
3397
  """ # noqa: E501
1926
3398
 
1927
- _param = self._api_v10_integrations_google_gcr_post_serialize(
1928
- google_container_registry_integration_create_dto=google_container_registry_integration_create_dto,
3399
+ _param = self._api_v10_integrations_id_delete_serialize(
3400
+ id=id,
1929
3401
  _request_auth=_request_auth,
1930
3402
  _content_type=_content_type,
1931
3403
  _headers=_headers,
@@ -1933,8 +3405,8 @@ class IntegrationsApi:
1933
3405
  )
1934
3406
 
1935
3407
  _response_types_map: Dict[str, Optional[str]] = {
1936
- '201': None,
1937
- '400': "IntegrationBadResponseDto",
3408
+ '200': None,
3409
+ '404': "ProblemDetails",
1938
3410
  }
1939
3411
  response_data = self.api_client.call_api(
1940
3412
  *_param,
@@ -1943,9 +3415,9 @@ class IntegrationsApi:
1943
3415
  return response_data.response
1944
3416
 
1945
3417
 
1946
- def _api_v10_integrations_google_gcr_post_serialize(
3418
+ def _api_v10_integrations_id_delete_serialize(
1947
3419
  self,
1948
- google_container_registry_integration_create_dto,
3420
+ id,
1949
3421
  _request_auth,
1950
3422
  _content_type,
1951
3423
  _headers,
@@ -1967,12 +3439,12 @@ class IntegrationsApi:
1967
3439
  _body_params: Optional[bytes] = None
1968
3440
 
1969
3441
  # process the path parameters
3442
+ if id is not None:
3443
+ _path_params['id'] = id
1970
3444
  # process the query parameters
1971
3445
  # process the header parameters
1972
3446
  # process the form parameters
1973
3447
  # process the body parameter
1974
- if google_container_registry_integration_create_dto is not None:
1975
- _body_params = google_container_registry_integration_create_dto
1976
3448
 
1977
3449
 
1978
3450
  # set the HTTP header `Accept`
@@ -1985,22 +3457,6 @@ class IntegrationsApi:
1985
3457
  ]
1986
3458
  )
1987
3459
 
1988
- # set the HTTP header `Content-Type`
1989
- if _content_type:
1990
- _header_params['Content-Type'] = _content_type
1991
- else:
1992
- _default_content_type = (
1993
- self.api_client.select_header_content_type(
1994
- [
1995
- 'application/json-patch+json',
1996
- 'application/json',
1997
- 'text/json',
1998
- 'application/*+json'
1999
- ]
2000
- )
2001
- )
2002
- if _default_content_type is not None:
2003
- _header_params['Content-Type'] = _default_content_type
2004
3460
 
2005
3461
  # authentication setting
2006
3462
  _auth_settings: List[str] = [
@@ -2008,8 +3464,8 @@ class IntegrationsApi:
2008
3464
  ]
2009
3465
 
2010
3466
  return self.api_client.param_serialize(
2011
- method='POST',
2012
- resource_path='/api/v1.0/integrations/google-gcr',
3467
+ method='DELETE',
3468
+ resource_path='/api/v1.0/integrations/{id}',
2013
3469
  path_params=_path_params,
2014
3470
  query_params=_query_params,
2015
3471
  header_params=_header_params,
@@ -2026,7 +3482,7 @@ class IntegrationsApi:
2026
3482
 
2027
3483
 
2028
3484
  @validate_call
2029
- def api_v10_integrations_id_delete(
3485
+ def api_v10_integrations_id_get(
2030
3486
  self,
2031
3487
  id: StrictStr,
2032
3488
  _request_timeout: Union[
@@ -2041,8 +3497,8 @@ class IntegrationsApi:
2041
3497
  _content_type: Optional[StrictStr] = None,
2042
3498
  _headers: Optional[Dict[StrictStr, Any]] = None,
2043
3499
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2044
- ) -> None:
2045
- """Delete integration by id
3500
+ ) -> IntegrationManagementDto:
3501
+ """Get integration by id
2046
3502
 
2047
3503
 
2048
3504
  :param id: (required)
@@ -2069,7 +3525,7 @@ class IntegrationsApi:
2069
3525
  :return: Returns the result object.
2070
3526
  """ # noqa: E501
2071
3527
 
2072
- _param = self._api_v10_integrations_id_delete_serialize(
3528
+ _param = self._api_v10_integrations_id_get_serialize(
2073
3529
  id=id,
2074
3530
  _request_auth=_request_auth,
2075
3531
  _content_type=_content_type,
@@ -2078,7 +3534,7 @@ class IntegrationsApi:
2078
3534
  )
2079
3535
 
2080
3536
  _response_types_map: Dict[str, Optional[str]] = {
2081
- '200': None,
3537
+ '200': "IntegrationManagementDto",
2082
3538
  '404': "ProblemDetails",
2083
3539
  }
2084
3540
  response_data = self.api_client.call_api(
@@ -2093,7 +3549,7 @@ class IntegrationsApi:
2093
3549
 
2094
3550
 
2095
3551
  @validate_call
2096
- def api_v10_integrations_id_delete_with_http_info(
3552
+ def api_v10_integrations_id_get_with_http_info(
2097
3553
  self,
2098
3554
  id: StrictStr,
2099
3555
  _request_timeout: Union[
@@ -2108,8 +3564,8 @@ class IntegrationsApi:
2108
3564
  _content_type: Optional[StrictStr] = None,
2109
3565
  _headers: Optional[Dict[StrictStr, Any]] = None,
2110
3566
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2111
- ) -> ApiResponse[None]:
2112
- """Delete integration by id
3567
+ ) -> ApiResponse[IntegrationManagementDto]:
3568
+ """Get integration by id
2113
3569
 
2114
3570
 
2115
3571
  :param id: (required)
@@ -2136,7 +3592,7 @@ class IntegrationsApi:
2136
3592
  :return: Returns the result object.
2137
3593
  """ # noqa: E501
2138
3594
 
2139
- _param = self._api_v10_integrations_id_delete_serialize(
3595
+ _param = self._api_v10_integrations_id_get_serialize(
2140
3596
  id=id,
2141
3597
  _request_auth=_request_auth,
2142
3598
  _content_type=_content_type,
@@ -2145,7 +3601,7 @@ class IntegrationsApi:
2145
3601
  )
2146
3602
 
2147
3603
  _response_types_map: Dict[str, Optional[str]] = {
2148
- '200': None,
3604
+ '200': "IntegrationManagementDto",
2149
3605
  '404': "ProblemDetails",
2150
3606
  }
2151
3607
  response_data = self.api_client.call_api(
@@ -2160,7 +3616,7 @@ class IntegrationsApi:
2160
3616
 
2161
3617
 
2162
3618
  @validate_call
2163
- def api_v10_integrations_id_delete_without_preload_content(
3619
+ def api_v10_integrations_id_get_without_preload_content(
2164
3620
  self,
2165
3621
  id: StrictStr,
2166
3622
  _request_timeout: Union[
@@ -2176,7 +3632,7 @@ class IntegrationsApi:
2176
3632
  _headers: Optional[Dict[StrictStr, Any]] = None,
2177
3633
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2178
3634
  ) -> RESTResponseType:
2179
- """Delete integration by id
3635
+ """Get integration by id
2180
3636
 
2181
3637
 
2182
3638
  :param id: (required)
@@ -2203,7 +3659,7 @@ class IntegrationsApi:
2203
3659
  :return: Returns the result object.
2204
3660
  """ # noqa: E501
2205
3661
 
2206
- _param = self._api_v10_integrations_id_delete_serialize(
3662
+ _param = self._api_v10_integrations_id_get_serialize(
2207
3663
  id=id,
2208
3664
  _request_auth=_request_auth,
2209
3665
  _content_type=_content_type,
@@ -2212,7 +3668,7 @@ class IntegrationsApi:
2212
3668
  )
2213
3669
 
2214
3670
  _response_types_map: Dict[str, Optional[str]] = {
2215
- '200': None,
3671
+ '200': "IntegrationManagementDto",
2216
3672
  '404': "ProblemDetails",
2217
3673
  }
2218
3674
  response_data = self.api_client.call_api(
@@ -2222,7 +3678,7 @@ class IntegrationsApi:
2222
3678
  return response_data.response
2223
3679
 
2224
3680
 
2225
- def _api_v10_integrations_id_delete_serialize(
3681
+ def _api_v10_integrations_id_get_serialize(
2226
3682
  self,
2227
3683
  id,
2228
3684
  _request_auth,
@@ -2271,7 +3727,7 @@ class IntegrationsApi:
2271
3727
  ]
2272
3728
 
2273
3729
  return self.api_client.param_serialize(
2274
- method='DELETE',
3730
+ method='GET',
2275
3731
  resource_path='/api/v1.0/integrations/{id}',
2276
3732
  path_params=_path_params,
2277
3733
  query_params=_query_params,
@@ -2289,7 +3745,7 @@ class IntegrationsApi:
2289
3745
 
2290
3746
 
2291
3747
  @validate_call
2292
- def api_v10_integrations_id_get(
3748
+ def api_v10_integrations_jenkins_id_delete(
2293
3749
  self,
2294
3750
  id: StrictStr,
2295
3751
  _request_timeout: Union[
@@ -2304,8 +3760,8 @@ class IntegrationsApi:
2304
3760
  _content_type: Optional[StrictStr] = None,
2305
3761
  _headers: Optional[Dict[StrictStr, Any]] = None,
2306
3762
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2307
- ) -> IntegrationManagementDto:
2308
- """Get integration by id
3763
+ ) -> None:
3764
+ """Delete Jenkins integration by Id
2309
3765
 
2310
3766
 
2311
3767
  :param id: (required)
@@ -2332,7 +3788,7 @@ class IntegrationsApi:
2332
3788
  :return: Returns the result object.
2333
3789
  """ # noqa: E501
2334
3790
 
2335
- _param = self._api_v10_integrations_id_get_serialize(
3791
+ _param = self._api_v10_integrations_jenkins_id_delete_serialize(
2336
3792
  id=id,
2337
3793
  _request_auth=_request_auth,
2338
3794
  _content_type=_content_type,
@@ -2341,8 +3797,7 @@ class IntegrationsApi:
2341
3797
  )
2342
3798
 
2343
3799
  _response_types_map: Dict[str, Optional[str]] = {
2344
- '200': "IntegrationManagementDto",
2345
- '404': "ProblemDetails",
3800
+ '200': None,
2346
3801
  }
2347
3802
  response_data = self.api_client.call_api(
2348
3803
  *_param,
@@ -2356,7 +3811,7 @@ class IntegrationsApi:
2356
3811
 
2357
3812
 
2358
3813
  @validate_call
2359
- def api_v10_integrations_id_get_with_http_info(
3814
+ def api_v10_integrations_jenkins_id_delete_with_http_info(
2360
3815
  self,
2361
3816
  id: StrictStr,
2362
3817
  _request_timeout: Union[
@@ -2371,8 +3826,8 @@ class IntegrationsApi:
2371
3826
  _content_type: Optional[StrictStr] = None,
2372
3827
  _headers: Optional[Dict[StrictStr, Any]] = None,
2373
3828
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2374
- ) -> ApiResponse[IntegrationManagementDto]:
2375
- """Get integration by id
3829
+ ) -> ApiResponse[None]:
3830
+ """Delete Jenkins integration by Id
2376
3831
 
2377
3832
 
2378
3833
  :param id: (required)
@@ -2399,7 +3854,7 @@ class IntegrationsApi:
2399
3854
  :return: Returns the result object.
2400
3855
  """ # noqa: E501
2401
3856
 
2402
- _param = self._api_v10_integrations_id_get_serialize(
3857
+ _param = self._api_v10_integrations_jenkins_id_delete_serialize(
2403
3858
  id=id,
2404
3859
  _request_auth=_request_auth,
2405
3860
  _content_type=_content_type,
@@ -2408,8 +3863,7 @@ class IntegrationsApi:
2408
3863
  )
2409
3864
 
2410
3865
  _response_types_map: Dict[str, Optional[str]] = {
2411
- '200': "IntegrationManagementDto",
2412
- '404': "ProblemDetails",
3866
+ '200': None,
2413
3867
  }
2414
3868
  response_data = self.api_client.call_api(
2415
3869
  *_param,
@@ -2423,7 +3877,7 @@ class IntegrationsApi:
2423
3877
 
2424
3878
 
2425
3879
  @validate_call
2426
- def api_v10_integrations_id_get_without_preload_content(
3880
+ def api_v10_integrations_jenkins_id_delete_without_preload_content(
2427
3881
  self,
2428
3882
  id: StrictStr,
2429
3883
  _request_timeout: Union[
@@ -2439,7 +3893,7 @@ class IntegrationsApi:
2439
3893
  _headers: Optional[Dict[StrictStr, Any]] = None,
2440
3894
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2441
3895
  ) -> RESTResponseType:
2442
- """Get integration by id
3896
+ """Delete Jenkins integration by Id
2443
3897
 
2444
3898
 
2445
3899
  :param id: (required)
@@ -2466,7 +3920,7 @@ class IntegrationsApi:
2466
3920
  :return: Returns the result object.
2467
3921
  """ # noqa: E501
2468
3922
 
2469
- _param = self._api_v10_integrations_id_get_serialize(
3923
+ _param = self._api_v10_integrations_jenkins_id_delete_serialize(
2470
3924
  id=id,
2471
3925
  _request_auth=_request_auth,
2472
3926
  _content_type=_content_type,
@@ -2475,8 +3929,7 @@ class IntegrationsApi:
2475
3929
  )
2476
3930
 
2477
3931
  _response_types_map: Dict[str, Optional[str]] = {
2478
- '200': "IntegrationManagementDto",
2479
- '404': "ProblemDetails",
3932
+ '200': None,
2480
3933
  }
2481
3934
  response_data = self.api_client.call_api(
2482
3935
  *_param,
@@ -2485,7 +3938,7 @@ class IntegrationsApi:
2485
3938
  return response_data.response
2486
3939
 
2487
3940
 
2488
- def _api_v10_integrations_id_get_serialize(
3941
+ def _api_v10_integrations_jenkins_id_delete_serialize(
2489
3942
  self,
2490
3943
  id,
2491
3944
  _request_auth,
@@ -2517,15 +3970,6 @@ class IntegrationsApi:
2517
3970
  # process the body parameter
2518
3971
 
2519
3972
 
2520
- # set the HTTP header `Accept`
2521
- if 'Accept' not in _header_params:
2522
- _header_params['Accept'] = self.api_client.select_header_accept(
2523
- [
2524
- 'text/plain',
2525
- 'application/json',
2526
- 'text/json'
2527
- ]
2528
- )
2529
3973
 
2530
3974
 
2531
3975
  # authentication setting
@@ -2534,8 +3978,8 @@ class IntegrationsApi:
2534
3978
  ]
2535
3979
 
2536
3980
  return self.api_client.param_serialize(
2537
- method='GET',
2538
- resource_path='/api/v1.0/integrations/{id}',
3981
+ method='DELETE',
3982
+ resource_path='/api/v1.0/integrations/jenkins/{id}',
2539
3983
  path_params=_path_params,
2540
3984
  query_params=_query_params,
2541
3985
  header_params=_header_params,
@@ -2552,9 +3996,10 @@ class IntegrationsApi:
2552
3996
 
2553
3997
 
2554
3998
  @validate_call
2555
- def api_v10_integrations_jenkins_id_delete(
3999
+ def api_v10_integrations_jenkins_id_put(
2556
4000
  self,
2557
4001
  id: StrictStr,
4002
+ jenkins_integration_edit_dto: Optional[JenkinsIntegrationEditDto] = None,
2558
4003
  _request_timeout: Union[
2559
4004
  None,
2560
4005
  Annotated[StrictFloat, Field(gt=0)],
@@ -2568,11 +4013,13 @@ class IntegrationsApi:
2568
4013
  _headers: Optional[Dict[StrictStr, Any]] = None,
2569
4014
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2570
4015
  ) -> None:
2571
- """Delete Jenkins integration by Id
4016
+ """Update Jenkins integration
2572
4017
 
2573
4018
 
2574
4019
  :param id: (required)
2575
4020
  :type id: str
4021
+ :param jenkins_integration_edit_dto:
4022
+ :type jenkins_integration_edit_dto: JenkinsIntegrationEditDto
2576
4023
  :param _request_timeout: timeout setting for this request. If one
2577
4024
  number provided, it will be total request
2578
4025
  timeout. It can also be a pair (tuple) of
@@ -2595,8 +4042,9 @@ class IntegrationsApi:
2595
4042
  :return: Returns the result object.
2596
4043
  """ # noqa: E501
2597
4044
 
2598
- _param = self._api_v10_integrations_jenkins_id_delete_serialize(
4045
+ _param = self._api_v10_integrations_jenkins_id_put_serialize(
2599
4046
  id=id,
4047
+ jenkins_integration_edit_dto=jenkins_integration_edit_dto,
2600
4048
  _request_auth=_request_auth,
2601
4049
  _content_type=_content_type,
2602
4050
  _headers=_headers,
@@ -2604,7 +4052,9 @@ class IntegrationsApi:
2604
4052
  )
2605
4053
 
2606
4054
  _response_types_map: Dict[str, Optional[str]] = {
2607
- '200': None,
4055
+ '204': None,
4056
+ '400': "IntegrationBadResponseDto",
4057
+ '404': "ProblemDetails",
2608
4058
  }
2609
4059
  response_data = self.api_client.call_api(
2610
4060
  *_param,
@@ -2618,9 +4068,10 @@ class IntegrationsApi:
2618
4068
 
2619
4069
 
2620
4070
  @validate_call
2621
- def api_v10_integrations_jenkins_id_delete_with_http_info(
4071
+ def api_v10_integrations_jenkins_id_put_with_http_info(
2622
4072
  self,
2623
4073
  id: StrictStr,
4074
+ jenkins_integration_edit_dto: Optional[JenkinsIntegrationEditDto] = None,
2624
4075
  _request_timeout: Union[
2625
4076
  None,
2626
4077
  Annotated[StrictFloat, Field(gt=0)],
@@ -2634,11 +4085,13 @@ class IntegrationsApi:
2634
4085
  _headers: Optional[Dict[StrictStr, Any]] = None,
2635
4086
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2636
4087
  ) -> ApiResponse[None]:
2637
- """Delete Jenkins integration by Id
4088
+ """Update Jenkins integration
2638
4089
 
2639
4090
 
2640
4091
  :param id: (required)
2641
4092
  :type id: str
4093
+ :param jenkins_integration_edit_dto:
4094
+ :type jenkins_integration_edit_dto: JenkinsIntegrationEditDto
2642
4095
  :param _request_timeout: timeout setting for this request. If one
2643
4096
  number provided, it will be total request
2644
4097
  timeout. It can also be a pair (tuple) of
@@ -2661,8 +4114,9 @@ class IntegrationsApi:
2661
4114
  :return: Returns the result object.
2662
4115
  """ # noqa: E501
2663
4116
 
2664
- _param = self._api_v10_integrations_jenkins_id_delete_serialize(
4117
+ _param = self._api_v10_integrations_jenkins_id_put_serialize(
2665
4118
  id=id,
4119
+ jenkins_integration_edit_dto=jenkins_integration_edit_dto,
2666
4120
  _request_auth=_request_auth,
2667
4121
  _content_type=_content_type,
2668
4122
  _headers=_headers,
@@ -2670,7 +4124,9 @@ class IntegrationsApi:
2670
4124
  )
2671
4125
 
2672
4126
  _response_types_map: Dict[str, Optional[str]] = {
2673
- '200': None,
4127
+ '204': None,
4128
+ '400': "IntegrationBadResponseDto",
4129
+ '404': "ProblemDetails",
2674
4130
  }
2675
4131
  response_data = self.api_client.call_api(
2676
4132
  *_param,
@@ -2684,9 +4140,10 @@ class IntegrationsApi:
2684
4140
 
2685
4141
 
2686
4142
  @validate_call
2687
- def api_v10_integrations_jenkins_id_delete_without_preload_content(
4143
+ def api_v10_integrations_jenkins_id_put_without_preload_content(
2688
4144
  self,
2689
4145
  id: StrictStr,
4146
+ jenkins_integration_edit_dto: Optional[JenkinsIntegrationEditDto] = None,
2690
4147
  _request_timeout: Union[
2691
4148
  None,
2692
4149
  Annotated[StrictFloat, Field(gt=0)],
@@ -2700,11 +4157,13 @@ class IntegrationsApi:
2700
4157
  _headers: Optional[Dict[StrictStr, Any]] = None,
2701
4158
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2702
4159
  ) -> RESTResponseType:
2703
- """Delete Jenkins integration by Id
4160
+ """Update Jenkins integration
2704
4161
 
2705
4162
 
2706
4163
  :param id: (required)
2707
4164
  :type id: str
4165
+ :param jenkins_integration_edit_dto:
4166
+ :type jenkins_integration_edit_dto: JenkinsIntegrationEditDto
2708
4167
  :param _request_timeout: timeout setting for this request. If one
2709
4168
  number provided, it will be total request
2710
4169
  timeout. It can also be a pair (tuple) of
@@ -2727,8 +4186,9 @@ class IntegrationsApi:
2727
4186
  :return: Returns the result object.
2728
4187
  """ # noqa: E501
2729
4188
 
2730
- _param = self._api_v10_integrations_jenkins_id_delete_serialize(
4189
+ _param = self._api_v10_integrations_jenkins_id_put_serialize(
2731
4190
  id=id,
4191
+ jenkins_integration_edit_dto=jenkins_integration_edit_dto,
2732
4192
  _request_auth=_request_auth,
2733
4193
  _content_type=_content_type,
2734
4194
  _headers=_headers,
@@ -2736,7 +4196,9 @@ class IntegrationsApi:
2736
4196
  )
2737
4197
 
2738
4198
  _response_types_map: Dict[str, Optional[str]] = {
2739
- '200': None,
4199
+ '204': None,
4200
+ '400': "IntegrationBadResponseDto",
4201
+ '404': "ProblemDetails",
2740
4202
  }
2741
4203
  response_data = self.api_client.call_api(
2742
4204
  *_param,
@@ -2745,9 +4207,10 @@ class IntegrationsApi:
2745
4207
  return response_data.response
2746
4208
 
2747
4209
 
2748
- def _api_v10_integrations_jenkins_id_delete_serialize(
4210
+ def _api_v10_integrations_jenkins_id_put_serialize(
2749
4211
  self,
2750
4212
  id,
4213
+ jenkins_integration_edit_dto,
2751
4214
  _request_auth,
2752
4215
  _content_type,
2753
4216
  _headers,
@@ -2775,9 +4238,36 @@ class IntegrationsApi:
2775
4238
  # process the header parameters
2776
4239
  # process the form parameters
2777
4240
  # process the body parameter
4241
+ if jenkins_integration_edit_dto is not None:
4242
+ _body_params = jenkins_integration_edit_dto
2778
4243
 
2779
4244
 
4245
+ # set the HTTP header `Accept`
4246
+ if 'Accept' not in _header_params:
4247
+ _header_params['Accept'] = self.api_client.select_header_accept(
4248
+ [
4249
+ 'text/plain',
4250
+ 'application/json',
4251
+ 'text/json'
4252
+ ]
4253
+ )
2780
4254
 
4255
+ # set the HTTP header `Content-Type`
4256
+ if _content_type:
4257
+ _header_params['Content-Type'] = _content_type
4258
+ else:
4259
+ _default_content_type = (
4260
+ self.api_client.select_header_content_type(
4261
+ [
4262
+ 'application/json-patch+json',
4263
+ 'application/json',
4264
+ 'text/json',
4265
+ 'application/*+json'
4266
+ ]
4267
+ )
4268
+ )
4269
+ if _default_content_type is not None:
4270
+ _header_params['Content-Type'] = _default_content_type
2781
4271
 
2782
4272
  # authentication setting
2783
4273
  _auth_settings: List[str] = [
@@ -2785,7 +4275,7 @@ class IntegrationsApi:
2785
4275
  ]
2786
4276
 
2787
4277
  return self.api_client.param_serialize(
2788
- method='DELETE',
4278
+ method='PUT',
2789
4279
  resource_path='/api/v1.0/integrations/jenkins/{id}',
2790
4280
  path_params=_path_params,
2791
4281
  query_params=_query_params,