You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ListEnterpriseNetworkConfigurations lists all hosted compute network configurations configured in an enterprise.
53
14
//
54
15
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations#list-hosted-compute-network-configurations-for-an-enterprise
55
16
//
56
17
//meta:operation GET /enterprises/{enterprise}/network-configurations
@@ -66,7 +27,7 @@ func (s *EnterpriseService) ListEnterpriseNetworkConfigurations(ctx context.Cont
66
27
returnnil, nil, err
67
28
}
68
29
69
-
networks:=&EnterpriseNetworkConfigurations{}
30
+
networks:=&NetworkConfigurations{}
70
31
resp, err:=s.client.Do(ctx, req, networks)
71
32
iferr!=nil {
72
33
returnnil, resp, err
@@ -79,14 +40,18 @@ func (s *EnterpriseService) ListEnterpriseNetworkConfigurations(ctx context.Cont
79
40
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations#create-a-hosted-compute-network-configuration-for-an-enterprise
80
41
//
81
42
//meta:operation POST /enterprises/{enterprise}/network-configurations
req, err:=s.client.NewRequest("POST", u, createReq)
85
50
iferr!=nil {
86
51
returnnil, nil, err
87
52
}
88
53
89
-
network:=&EnterpriseNetworkConfiguration{}
54
+
network:=&NetworkConfiguration{}
90
55
resp, err:=s.client.Do(ctx, req, network)
91
56
iferr!=nil {
92
57
returnnil, resp, err
@@ -100,14 +65,14 @@ func (s *EnterpriseService) CreateEnterpriseNetworkConfiguration(ctx context.Con
100
65
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations#get-a-hosted-compute-network-configuration-for-an-enterprise
101
66
//
102
67
//meta:operation GET /enterprises/{enterprise}/network-configurations/{network_configuration_id}
@@ -120,14 +85,18 @@ func (s *EnterpriseService) GetEnterpriseNetworkConfiguration(ctx context.Contex
120
85
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations#update-a-hosted-compute-network-configuration-for-an-enterprise
req, err:=s.client.NewRequest("PATCH", u, updateReq)
126
95
iferr!=nil {
127
96
returnnil, nil, err
128
97
}
129
98
130
-
network:=&EnterpriseNetworkConfiguration{}
99
+
network:=&NetworkConfiguration{}
131
100
resp, err:=s.client.Do(ctx, req, network)
132
101
iferr!=nil {
133
102
returnnil, resp, err
@@ -154,14 +123,14 @@ func (s *EnterpriseService) DeleteEnterpriseNetworkConfiguration(ctx context.Con
154
123
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-enterprise
155
124
//
156
125
//meta:operation GET /enterprises/{enterprise}/network-settings/{network_settings_id}
0 commit comments