54
54
build_jobs_summary_request ,
55
55
build_jobs_unassign_bulk_jobs_sandboxes_request ,
56
56
build_jobs_unassign_job_sandboxes_request ,
57
- build_lollygag_get_gubbins_secrets_request ,
58
- build_lollygag_get_owner_object_request ,
59
- build_lollygag_insert_owner_object_request ,
60
57
build_pilots_get_pilot_info_request ,
61
58
build_well_known_get_installation_metadata_request ,
62
59
build_well_known_get_openid_configuration_request ,
@@ -157,15 +154,13 @@ async def get_openid_configuration(
157
154
return deserialized # type: ignore
158
155
159
156
@distributed_trace_async
160
- async def get_installation_metadata (
161
- self , ** kwargs : Any
162
- ) -> _models .ExtendedMetadata :
157
+ async def get_installation_metadata (self , ** kwargs : Any ) -> _models .Metadata :
163
158
"""Get Installation Metadata.
164
159
165
- Get Installation Metadata .
160
+ Get metadata about the dirac installation .
166
161
167
- :return: ExtendedMetadata
168
- :rtype: ~_generated.models.ExtendedMetadata
162
+ :return: Metadata
163
+ :rtype: ~_generated.models.Metadata
169
164
:raises ~azure.core.exceptions.HttpResponseError:
170
165
"""
171
166
error_map : MutableMapping = {
@@ -179,7 +174,7 @@ async def get_installation_metadata(
179
174
_headers = kwargs .pop ("headers" , {}) or {}
180
175
_params = kwargs .pop ("params" , {}) or {}
181
176
182
- cls : ClsType [_models .ExtendedMetadata ] = kwargs .pop ("cls" , None )
177
+ cls : ClsType [_models .Metadata ] = kwargs .pop ("cls" , None )
183
178
184
179
_request = build_well_known_get_installation_metadata_request (
185
180
headers = _headers ,
@@ -202,9 +197,7 @@ async def get_installation_metadata(
202
197
)
203
198
raise HttpResponseError (response = response )
204
199
205
- deserialized = self ._deserialize (
206
- "ExtendedMetadata" , pipeline_response .http_response
207
- )
200
+ deserialized = self ._deserialize ("Metadata" , pipeline_response .http_response )
208
201
209
202
if cls :
210
203
return cls (pipeline_response , deserialized , {}) # type: ignore
@@ -2554,190 +2547,6 @@ async def submit_jdl_jobs(
2554
2547
return deserialized # type: ignore
2555
2548
2556
2549
2557
- class LollygagOperations :
2558
- """
2559
- .. warning::
2560
- **DO NOT** instantiate this class directly.
2561
-
2562
- Instead, you should access the following operations through
2563
- :class:`~_generated.aio.Dirac`'s
2564
- :attr:`lollygag` attribute.
2565
- """
2566
-
2567
- models = _models
2568
-
2569
- def __init__ (self , * args , ** kwargs ) -> None :
2570
- input_args = list (args )
2571
- self ._client : AsyncPipelineClient = (
2572
- input_args .pop (0 ) if input_args else kwargs .pop ("client" )
2573
- )
2574
- self ._config : DiracConfiguration = (
2575
- input_args .pop (0 ) if input_args else kwargs .pop ("config" )
2576
- )
2577
- self ._serialize : Serializer = (
2578
- input_args .pop (0 ) if input_args else kwargs .pop ("serializer" )
2579
- )
2580
- self ._deserialize : Deserializer = (
2581
- input_args .pop (0 ) if input_args else kwargs .pop ("deserializer" )
2582
- )
2583
-
2584
- @distributed_trace_async
2585
- async def insert_owner_object (self , owner_name : str , ** kwargs : Any ) -> Any :
2586
- """Insert Owner Object.
2587
-
2588
- Insert Owner Object.
2589
-
2590
- :param owner_name: Required.
2591
- :type owner_name: str
2592
- :return: any
2593
- :rtype: any
2594
- :raises ~azure.core.exceptions.HttpResponseError:
2595
- """
2596
- error_map : MutableMapping = {
2597
- 401 : ClientAuthenticationError ,
2598
- 404 : ResourceNotFoundError ,
2599
- 409 : ResourceExistsError ,
2600
- 304 : ResourceNotModifiedError ,
2601
- }
2602
- error_map .update (kwargs .pop ("error_map" , {}) or {})
2603
-
2604
- _headers = kwargs .pop ("headers" , {}) or {}
2605
- _params = kwargs .pop ("params" , {}) or {}
2606
-
2607
- cls : ClsType [Any ] = kwargs .pop ("cls" , None )
2608
-
2609
- _request = build_lollygag_insert_owner_object_request (
2610
- owner_name = owner_name ,
2611
- headers = _headers ,
2612
- params = _params ,
2613
- )
2614
- _request .url = self ._client .format_url (_request .url )
2615
-
2616
- _stream = False
2617
- pipeline_response : PipelineResponse = (
2618
- await self ._client ._pipeline .run ( # pylint: disable=protected-access
2619
- _request , stream = _stream , ** kwargs
2620
- )
2621
- )
2622
-
2623
- response = pipeline_response .http_response
2624
-
2625
- if response .status_code not in [200 ]:
2626
- map_error (
2627
- status_code = response .status_code , response = response , error_map = error_map
2628
- )
2629
- raise HttpResponseError (response = response )
2630
-
2631
- deserialized = self ._deserialize ("object" , pipeline_response .http_response )
2632
-
2633
- if cls :
2634
- return cls (pipeline_response , deserialized , {}) # type: ignore
2635
-
2636
- return deserialized # type: ignore
2637
-
2638
- @distributed_trace_async
2639
- async def get_owner_object (self , ** kwargs : Any ) -> Any :
2640
- """Get Owner Object.
2641
-
2642
- Get Owner Object.
2643
-
2644
- :return: any
2645
- :rtype: any
2646
- :raises ~azure.core.exceptions.HttpResponseError:
2647
- """
2648
- error_map : MutableMapping = {
2649
- 401 : ClientAuthenticationError ,
2650
- 404 : ResourceNotFoundError ,
2651
- 409 : ResourceExistsError ,
2652
- 304 : ResourceNotModifiedError ,
2653
- }
2654
- error_map .update (kwargs .pop ("error_map" , {}) or {})
2655
-
2656
- _headers = kwargs .pop ("headers" , {}) or {}
2657
- _params = kwargs .pop ("params" , {}) or {}
2658
-
2659
- cls : ClsType [Any ] = kwargs .pop ("cls" , None )
2660
-
2661
- _request = build_lollygag_get_owner_object_request (
2662
- headers = _headers ,
2663
- params = _params ,
2664
- )
2665
- _request .url = self ._client .format_url (_request .url )
2666
-
2667
- _stream = False
2668
- pipeline_response : PipelineResponse = (
2669
- await self ._client ._pipeline .run ( # pylint: disable=protected-access
2670
- _request , stream = _stream , ** kwargs
2671
- )
2672
- )
2673
-
2674
- response = pipeline_response .http_response
2675
-
2676
- if response .status_code not in [200 ]:
2677
- map_error (
2678
- status_code = response .status_code , response = response , error_map = error_map
2679
- )
2680
- raise HttpResponseError (response = response )
2681
-
2682
- deserialized = self ._deserialize ("object" , pipeline_response .http_response )
2683
-
2684
- if cls :
2685
- return cls (pipeline_response , deserialized , {}) # type: ignore
2686
-
2687
- return deserialized # type: ignore
2688
-
2689
- @distributed_trace_async
2690
- async def get_gubbins_secrets (self , ** kwargs : Any ) -> Any :
2691
- """Get Gubbins Secrets.
2692
-
2693
- Does nothing but expects a GUBBINS_SENSEI permission.
2694
-
2695
- :return: any
2696
- :rtype: any
2697
- :raises ~azure.core.exceptions.HttpResponseError:
2698
- """
2699
- error_map : MutableMapping = {
2700
- 401 : ClientAuthenticationError ,
2701
- 404 : ResourceNotFoundError ,
2702
- 409 : ResourceExistsError ,
2703
- 304 : ResourceNotModifiedError ,
2704
- }
2705
- error_map .update (kwargs .pop ("error_map" , {}) or {})
2706
-
2707
- _headers = kwargs .pop ("headers" , {}) or {}
2708
- _params = kwargs .pop ("params" , {}) or {}
2709
-
2710
- cls : ClsType [Any ] = kwargs .pop ("cls" , None )
2711
-
2712
- _request = build_lollygag_get_gubbins_secrets_request (
2713
- headers = _headers ,
2714
- params = _params ,
2715
- )
2716
- _request .url = self ._client .format_url (_request .url )
2717
-
2718
- _stream = False
2719
- pipeline_response : PipelineResponse = (
2720
- await self ._client ._pipeline .run ( # pylint: disable=protected-access
2721
- _request , stream = _stream , ** kwargs
2722
- )
2723
- )
2724
-
2725
- response = pipeline_response .http_response
2726
-
2727
- if response .status_code not in [200 ]:
2728
- map_error (
2729
- status_code = response .status_code , response = response , error_map = error_map
2730
- )
2731
- raise HttpResponseError (response = response )
2732
-
2733
- deserialized = self ._deserialize ("object" , pipeline_response .http_response )
2734
-
2735
- if cls :
2736
- return cls (pipeline_response , deserialized , {}) # type: ignore
2737
-
2738
- return deserialized # type: ignore
2739
-
2740
-
2741
2550
class PilotsOperations :
2742
2551
"""
2743
2552
.. warning::
0 commit comments