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 ,
57
60
build_pilots_get_pilot_info_request ,
58
61
build_well_known_get_installation_metadata_request ,
59
62
build_well_known_get_openid_configuration_request ,
@@ -154,13 +157,15 @@ async def get_openid_configuration(
154
157
return deserialized # type: ignore
155
158
156
159
@distributed_trace_async
157
- async def get_installation_metadata (self , ** kwargs : Any ) -> _models .Metadata :
160
+ async def get_installation_metadata (
161
+ self , ** kwargs : Any
162
+ ) -> _models .ExtendedMetadata :
158
163
"""Get Installation Metadata.
159
164
160
- Get metadata about the dirac installation .
165
+ Get Installation Metadata .
161
166
162
- :return: Metadata
163
- :rtype: ~_generated.models.Metadata
167
+ :return: ExtendedMetadata
168
+ :rtype: ~_generated.models.ExtendedMetadata
164
169
:raises ~azure.core.exceptions.HttpResponseError:
165
170
"""
166
171
error_map : MutableMapping = {
@@ -174,7 +179,7 @@ async def get_installation_metadata(self, **kwargs: Any) -> _models.Metadata:
174
179
_headers = kwargs .pop ("headers" , {}) or {}
175
180
_params = kwargs .pop ("params" , {}) or {}
176
181
177
- cls : ClsType [_models .Metadata ] = kwargs .pop ("cls" , None )
182
+ cls : ClsType [_models .ExtendedMetadata ] = kwargs .pop ("cls" , None )
178
183
179
184
_request = build_well_known_get_installation_metadata_request (
180
185
headers = _headers ,
@@ -197,7 +202,9 @@ async def get_installation_metadata(self, **kwargs: Any) -> _models.Metadata:
197
202
)
198
203
raise HttpResponseError (response = response )
199
204
200
- deserialized = self ._deserialize ("Metadata" , pipeline_response .http_response )
205
+ deserialized = self ._deserialize (
206
+ "ExtendedMetadata" , pipeline_response .http_response
207
+ )
201
208
202
209
if cls :
203
210
return cls (pipeline_response , deserialized , {}) # type: ignore
@@ -2547,6 +2554,190 @@ async def submit_jdl_jobs(
2547
2554
return deserialized # type: ignore
2548
2555
2549
2556
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
+
2550
2741
class PilotsOperations :
2551
2742
"""
2552
2743
.. warning::
0 commit comments