@@ -61,8 +61,8 @@ class Configuration:
61
61
configuration_dictionary = {
62
62
" useMLEGlobally" : True , # Globally MLE will be enabled for all MLE supported APIs
63
63
" mapToControlMLEonAPI" : {
64
- " apiFunctionName1" : False , # Disable MLE for this API
65
- " apiFunctionName2" : True # Enable MLE for this API
64
+ " apiFunctionName1" : False , # if want to disable the particular API from list of MLE supported APIs
65
+ " apiFunctionName2" : True # if want to enable MLE on API which is not in the list of supported MLE APIs for used version of REST SDK
66
66
},
67
67
" mleKeyAlias" : " Custom_Key_Alias" # Optional custom value provided by Cybs
68
68
}
@@ -73,22 +73,22 @@ class Configuration:
73
73
def __init__ (self ):
74
74
self .useMLEGlobally = True
75
75
self .mapToControlMLEonAPI = {
76
- " apiFunctionName1" : False , # Disable MLE for this API
77
- " apiFunctionName2" : True # Enable MLE for this API
76
+ " apiFunctionName1" : False , # if want to disable the particular API from list of MLE supported APIs
77
+ " apiFunctionName2" : True # if want to enable MLE on API which is not in the list of supported MLE APIs for used version of REST SDK
78
78
}
79
- self .mleKeyAlias = " Custom_Key_Alias"
80
- ```
79
+ self .mleKeyAlias = " Custom_Key_Alias" # Optional custom value provided by Cybs
80
+ ```
81
81
82
82
### Option 3: Disable MLE globally and enable for specific APIs
83
83
84
84
``` python
85
85
configuration_dictionary = {
86
86
" useMLEGlobally" : False , # Globally MLE will be disabled for all APIs
87
87
" mapToControlMLEonAPI" : {
88
- " apiFunctionName1" : True , # Enable MLE for this API
89
- " apiFunctionName2" : True # Enable MLE for this API
88
+ " apiFunctionName1" : True , # if want to enable MLE for API1
89
+ " apiFunctionName2" : True # if want to enable MLE for API2
90
90
},
91
- " mleKeyAlias" : " Custom_Key_Alias"
91
+ " mleKeyAlias" : " Custom_Key_Alias" # optional if any custom value provided by Cybs
92
92
}
93
93
94
94
# OR
@@ -97,64 +97,10 @@ class Configuration:
97
97
def __init__ (self ):
98
98
self .useMLEGlobally = False # Globally MLE will be disabled for all APIs
99
99
self .mapToControlMLEonAPI = {
100
- " apiFunctionName1" : True , # Enable MLE for this API
101
- " apiFunctionName2" : True # Enable MLE for this API
102
- }
103
- self .mleKeyAlias = " Custom_Key_Alias"
104
- ```
105
-
106
- ### Another example with MLE enabled globally
107
-
108
- ``` python
109
- mle_map = {
110
- " apiFunctionName1" : False , # Disable MLE for this API
111
- " apiFunctionName2" : True # Enable MLE for this API
112
- }
113
-
114
- configuration_dictionary = {
115
- " useMLEGlobally" : True , # Globally MLE will be enabled for all APIs
116
- " mapToControlMLEonAPI" : mle_map,
117
- " mleKeyAlias" : " Custom_Key_Alias"
118
- }
119
-
120
- # OR
121
-
122
- class Configuration :
123
- def __init__ (self ):
124
- self .useMLEGlobally = True # Globally MLE will be enabled for all APIs
125
- mle_map = {
126
- " apiFunctionName1" : False , # Disable MLE for this API
127
- " apiFunctionName2" : True # Enable MLE for this API
128
- }
129
- self .mapToControlMLEonAPI = mle_map
130
- self .mleKeyAlias = " Custom_Key_Alias"
131
- ```
132
-
133
- ### Another example with MLE disabled globally
134
-
135
- ``` python
136
- mle_map = {
137
- " apiFunctionName1" : True , # Enable MLE for this API
138
- " apiFunctionName2" : True # Enable MLE for this API
139
- }
140
-
141
- configuration_dictionary = {
142
- " useMLEGlobally" : False , # Globally MLE will be disabled for all APIs
143
- " mapToControlMLEonAPI" : mle_map,
144
- " mleKeyAlias" : " Custom_Key_Alias"
145
- }
146
-
147
- # OR
148
-
149
- class Configuration :
150
- def __init__ (self ):
151
- self .useMLEGlobally = False # Globally MLE will be disabled for all APIs
152
- mle_map = {
153
- " apiFunctionName1" : True , # Enable MLE for this API
154
- " apiFunctionName2" : True # Enable MLE for this API
155
- }
156
- self .mapToControlMLEonAPI = mle_map
157
- self .mleKeyAlias = " Custom_Key_Alias"
100
+ " apiFunctionName1" : True , # if want to enable MLE for API1
101
+ " apiFunctionName2" : True # if want to enable MLE for API2
102
+ },
103
+ self .mleKeyAlias = " Custom_Key_Alias" # optional if any custom value provided by Cybs
158
104
```
159
105
160
106
In the above examples:
0 commit comments