@@ -35,15 +35,15 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
35
35
; [ params , options , callback ] = normalizeArguments ( params , options , callback )
36
36
37
37
// check required parameters
38
- if ( params [ ' name' ] == null ) {
38
+ if ( params . name == null ) {
39
39
const err = new this [ kConfigurationError ] ( 'Missing required parameter: name' )
40
40
return handleError ( err , callback )
41
41
}
42
42
43
- var { method, body, name, ...querystring } = params
43
+ let { method, body, name, ...querystring } = params
44
44
querystring = snakeCaseKeys ( acceptedQuerystring , snakeCase , querystring )
45
45
46
- var path = ''
46
+ let path = ''
47
47
if ( method == null ) method = 'DELETE'
48
48
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent ( name )
49
49
@@ -61,10 +61,10 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
61
61
AutoscalingApi . prototype . getAutoscalingCapacity = function autoscalingGetAutoscalingCapacityApi ( params , options , callback ) {
62
62
; [ params , options , callback ] = normalizeArguments ( params , options , callback )
63
63
64
- var { method, body, ...querystring } = params
64
+ let { method, body, ...querystring } = params
65
65
querystring = snakeCaseKeys ( acceptedQuerystring , snakeCase , querystring )
66
66
67
- var path = ''
67
+ let path = ''
68
68
if ( method == null ) method = 'GET'
69
69
path = '/' + '_autoscaling' + '/' + 'capacity'
70
70
@@ -83,15 +83,15 @@ AutoscalingApi.prototype.getAutoscalingPolicy = function autoscalingGetAutoscali
83
83
; [ params , options , callback ] = normalizeArguments ( params , options , callback )
84
84
85
85
// check required parameters
86
- if ( params [ ' name' ] == null ) {
86
+ if ( params . name == null ) {
87
87
const err = new this [ kConfigurationError ] ( 'Missing required parameter: name' )
88
88
return handleError ( err , callback )
89
89
}
90
90
91
- var { method, body, name, ...querystring } = params
91
+ let { method, body, name, ...querystring } = params
92
92
querystring = snakeCaseKeys ( acceptedQuerystring , snakeCase , querystring )
93
93
94
- var path = ''
94
+ let path = ''
95
95
if ( method == null ) method = 'GET'
96
96
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent ( name )
97
97
@@ -110,19 +110,19 @@ AutoscalingApi.prototype.putAutoscalingPolicy = function autoscalingPutAutoscali
110
110
; [ params , options , callback ] = normalizeArguments ( params , options , callback )
111
111
112
112
// check required parameters
113
- if ( params [ ' name' ] == null ) {
113
+ if ( params . name == null ) {
114
114
const err = new this [ kConfigurationError ] ( 'Missing required parameter: name' )
115
115
return handleError ( err , callback )
116
116
}
117
- if ( params [ ' body' ] == null ) {
117
+ if ( params . body == null ) {
118
118
const err = new this [ kConfigurationError ] ( 'Missing required parameter: body' )
119
119
return handleError ( err , callback )
120
120
}
121
121
122
- var { method, body, name, ...querystring } = params
122
+ let { method, body, name, ...querystring } = params
123
123
querystring = snakeCaseKeys ( acceptedQuerystring , snakeCase , querystring )
124
124
125
- var path = ''
125
+ let path = ''
126
126
if ( method == null ) method = 'PUT'
127
127
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent ( name )
128
128
0 commit comments