@@ -110,14 +110,16 @@ func (instance *Client) Login(username string, password string) {
110
110
}
111
111
112
112
// Setup : Setup APIM Client config
113
- func (instance * Client ) Setup (envName string , host string , offset int , dcrVersion , restAPIVersion , devopsRestAPIVersion string ) {
113
+ func (instance * Client ) Setup (envName string , host string , offset int , dcrVersion , adminRestAPIVersion ,
114
+ devportalRestAPIVersion , publisherRestAPIVersion , devopsRestAPIVersion string ) {
114
115
base .Log ("apim.Setup() - envName:" , envName , ",host:" , host , ",offset:" , offset , ",dcrVersion:" , dcrVersion ,
115
- ",restAPIVersion:" , restAPIVersion )
116
+ ",adminRestAPIVersion:" , adminRestAPIVersion , ",devportalRestAPIVersion:" , devportalRestAPIVersion ,
117
+ ",publisherRestAPIVersion:" , publisherRestAPIVersion )
116
118
instance .apimURL = getApimURL (host , offset )
117
119
instance .dcrURL = getDCRURL (host , dcrVersion , offset )
118
- instance .devPortalRestURL = getDevPortalRestURL (host , restAPIVersion , offset )
119
- instance .publisherRestURL = getPublisherRestURL (host , restAPIVersion , offset )
120
- instance .adminRestURL = getAdminRestURL (host , restAPIVersion , offset )
120
+ instance .devPortalRestURL = getDevPortalRestURL (host , devportalRestAPIVersion , offset )
121
+ instance .publisherRestURL = getPublisherRestURL (host , publisherRestAPIVersion , offset )
122
+ instance .adminRestURL = getAdminRestURL (host , adminRestAPIVersion , offset )
121
123
instance .devopsRestURL = getDevOpsRestURL (host , devopsRestAPIVersion , offset )
122
124
instance .portOffset = offset
123
125
instance .tokenURL = getTokenURL (host , offset )
@@ -1903,35 +1905,41 @@ func (instance *Client) SetAPILogLevel(username, password, tenantDomain, apiId,
1903
1905
}
1904
1906
1905
1907
func generateSampleAPIOperations () []APIOperations {
1908
+
1906
1909
op1 := APIOperations {}
1907
1910
op1 .Target = "/order/{orderId}"
1908
1911
op1 .Verb = "GET"
1909
1912
op1 .ThrottlingPolicy = "Unlimited"
1910
1913
op1 .AuthType = "Application & Application User"
1914
+ op1 .OperationPolicies = OperationPolicies {[]string {}, []string {}, []string {}}
1911
1915
1912
1916
op2 := APIOperations {}
1913
1917
op2 .Target = "/order/{orderId}"
1914
1918
op2 .Verb = "DELETE"
1915
1919
op2 .ThrottlingPolicy = "Unlimited"
1916
1920
op2 .AuthType = "Application & Application User"
1921
+ op2 .OperationPolicies = OperationPolicies {[]string {}, []string {}, []string {}}
1917
1922
1918
1923
op3 := APIOperations {}
1919
1924
op3 .Target = "/order/{orderId}"
1920
1925
op3 .Verb = "PUT"
1921
1926
op3 .ThrottlingPolicy = "Unlimited"
1922
1927
op3 .AuthType = "Application & Application User"
1928
+ op3 .OperationPolicies = OperationPolicies {[]string {}, []string {}, []string {}}
1923
1929
1924
1930
op4 := APIOperations {}
1925
1931
op4 .Target = "/menu"
1926
1932
op4 .Verb = "GET"
1927
1933
op4 .ThrottlingPolicy = "Unlimited"
1928
1934
op4 .AuthType = "Application & Application User"
1935
+ op4 .OperationPolicies = OperationPolicies {[]string {}, []string {}, []string {}}
1929
1936
1930
1937
op5 := APIOperations {}
1931
1938
op5 .Target = "/order"
1932
1939
op5 .Verb = "POST"
1933
1940
op5 .ThrottlingPolicy = "Unlimited"
1934
1941
op5 .AuthType = "Application & Application User"
1942
+ op5 .OperationPolicies = OperationPolicies {[]string {}, []string {}, []string {}}
1935
1943
1936
1944
return []APIOperations {op1 , op2 , op3 , op4 , op5 }
1937
1945
}
0 commit comments