30
30
WANsResourceWithStreamingResponse ,
31
31
AsyncWANsResourceWithStreamingResponse ,
32
32
)
33
- from .sites import (
34
- SitesResource ,
35
- AsyncSitesResource ,
36
- SitesResourceWithRawResponse ,
37
- AsyncSitesResourceWithRawResponse ,
38
- SitesResourceWithStreamingResponse ,
39
- AsyncSitesResourceWithStreamingResponse ,
40
- sites ,
41
- )
42
33
from ...._types import NOT_GIVEN , Body , Query , Headers , NotGiven
43
34
from ...._utils import (
44
35
maybe_transform ,
58
49
AsyncPaginator ,
59
50
make_request_options ,
60
51
)
52
+ from .app_configuration import (
53
+ AppConfigurationResource ,
54
+ AsyncAppConfigurationResource ,
55
+ AppConfigurationResourceWithRawResponse ,
56
+ AsyncAppConfigurationResourceWithRawResponse ,
57
+ AppConfigurationResourceWithStreamingResponse ,
58
+ AsyncAppConfigurationResourceWithStreamingResponse ,
59
+ )
61
60
from ....types .magic_transit import (
62
61
site_edit_params ,
63
62
site_list_params ,
71
70
72
71
73
72
class SitesResource (SyncAPIResource ):
73
+ @cached_property
74
+ def app_configuration (self ) -> AppConfigurationResource :
75
+ return AppConfigurationResource (self ._client )
76
+
74
77
@cached_property
75
78
def acls (self ) -> ACLsResource :
76
79
return ACLsResource (self ._client )
@@ -83,10 +86,6 @@ def lans(self) -> LANsResource:
83
86
def wans (self ) -> WANsResource :
84
87
return WANsResource (self ._client )
85
88
86
- @cached_property
87
- def sites (self ) -> sites .SitesResource :
88
- return SitesResource (self ._client )
89
-
90
89
@cached_property
91
90
def with_raw_response (self ) -> SitesResourceWithRawResponse :
92
91
return SitesResourceWithRawResponse (self )
@@ -432,6 +431,10 @@ def get(
432
431
433
432
434
433
class AsyncSitesResource (AsyncAPIResource ):
434
+ @cached_property
435
+ def app_configuration (self ) -> AsyncAppConfigurationResource :
436
+ return AsyncAppConfigurationResource (self ._client )
437
+
435
438
@cached_property
436
439
def acls (self ) -> AsyncACLsResource :
437
440
return AsyncACLsResource (self ._client )
@@ -444,10 +447,6 @@ def lans(self) -> AsyncLANsResource:
444
447
def wans (self ) -> AsyncWANsResource :
445
448
return AsyncWANsResource (self ._client )
446
449
447
- @cached_property
448
- def sites (self ) -> sites .AsyncSitesResource :
449
- return AsyncSitesResource (self ._client )
450
-
451
450
@cached_property
452
451
def with_raw_response (self ) -> AsyncSitesResourceWithRawResponse :
453
452
return AsyncSitesResourceWithRawResponse (self )
@@ -815,6 +814,10 @@ def __init__(self, sites: SitesResource) -> None:
815
814
sites .get ,
816
815
)
817
816
817
+ @cached_property
818
+ def app_configuration (self ) -> AppConfigurationResourceWithRawResponse :
819
+ return AppConfigurationResourceWithRawResponse (self ._sites .app_configuration )
820
+
818
821
@cached_property
819
822
def acls (self ) -> ACLsResourceWithRawResponse :
820
823
return ACLsResourceWithRawResponse (self ._sites .acls )
@@ -827,10 +830,6 @@ def lans(self) -> LANsResourceWithRawResponse:
827
830
def wans (self ) -> WANsResourceWithRawResponse :
828
831
return WANsResourceWithRawResponse (self ._sites .wans )
829
832
830
- @cached_property
831
- def sites (self ) -> SitesResourceWithRawResponse :
832
- return SitesResourceWithRawResponse (self ._sites .sites )
833
-
834
833
835
834
class AsyncSitesResourceWithRawResponse :
836
835
def __init__ (self , sites : AsyncSitesResource ) -> None :
@@ -855,6 +854,10 @@ def __init__(self, sites: AsyncSitesResource) -> None:
855
854
sites .get ,
856
855
)
857
856
857
+ @cached_property
858
+ def app_configuration (self ) -> AsyncAppConfigurationResourceWithRawResponse :
859
+ return AsyncAppConfigurationResourceWithRawResponse (self ._sites .app_configuration )
860
+
858
861
@cached_property
859
862
def acls (self ) -> AsyncACLsResourceWithRawResponse :
860
863
return AsyncACLsResourceWithRawResponse (self ._sites .acls )
@@ -867,10 +870,6 @@ def lans(self) -> AsyncLANsResourceWithRawResponse:
867
870
def wans (self ) -> AsyncWANsResourceWithRawResponse :
868
871
return AsyncWANsResourceWithRawResponse (self ._sites .wans )
869
872
870
- @cached_property
871
- def sites (self ) -> AsyncSitesResourceWithRawResponse :
872
- return AsyncSitesResourceWithRawResponse (self ._sites .sites )
873
-
874
873
875
874
class SitesResourceWithStreamingResponse :
876
875
def __init__ (self , sites : SitesResource ) -> None :
@@ -895,6 +894,10 @@ def __init__(self, sites: SitesResource) -> None:
895
894
sites .get ,
896
895
)
897
896
897
+ @cached_property
898
+ def app_configuration (self ) -> AppConfigurationResourceWithStreamingResponse :
899
+ return AppConfigurationResourceWithStreamingResponse (self ._sites .app_configuration )
900
+
898
901
@cached_property
899
902
def acls (self ) -> ACLsResourceWithStreamingResponse :
900
903
return ACLsResourceWithStreamingResponse (self ._sites .acls )
@@ -907,10 +910,6 @@ def lans(self) -> LANsResourceWithStreamingResponse:
907
910
def wans (self ) -> WANsResourceWithStreamingResponse :
908
911
return WANsResourceWithStreamingResponse (self ._sites .wans )
909
912
910
- @cached_property
911
- def sites (self ) -> SitesResourceWithStreamingResponse :
912
- return SitesResourceWithStreamingResponse (self ._sites .sites )
913
-
914
913
915
914
class AsyncSitesResourceWithStreamingResponse :
916
915
def __init__ (self , sites : AsyncSitesResource ) -> None :
@@ -935,6 +934,10 @@ def __init__(self, sites: AsyncSitesResource) -> None:
935
934
sites .get ,
936
935
)
937
936
937
+ @cached_property
938
+ def app_configuration (self ) -> AsyncAppConfigurationResourceWithStreamingResponse :
939
+ return AsyncAppConfigurationResourceWithStreamingResponse (self ._sites .app_configuration )
940
+
938
941
@cached_property
939
942
def acls (self ) -> AsyncACLsResourceWithStreamingResponse :
940
943
return AsyncACLsResourceWithStreamingResponse (self ._sites .acls )
@@ -946,7 +949,3 @@ def lans(self) -> AsyncLANsResourceWithStreamingResponse:
946
949
@cached_property
947
950
def wans (self ) -> AsyncWANsResourceWithStreamingResponse :
948
951
return AsyncWANsResourceWithStreamingResponse (self ._sites .wans )
949
-
950
- @cached_property
951
- def sites (self ) -> AsyncSitesResourceWithStreamingResponse :
952
- return AsyncSitesResourceWithStreamingResponse (self ._sites .sites )
0 commit comments