files-com 1.6.31__py3-none-any.whl → 1.6.33__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of files-com might be problematic. Click here for more details.

@@ -49,12 +49,12 @@ class PublicHostingRequestLog:
49
49
  # Parameters:
50
50
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
51
51
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `path`, `remote_ip`, `success` or `created_at`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, created_at ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, created_at ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, created_at ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, created_at ]`, `[ start_date, success, created_at ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, created_at ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, created_at ]`, `[ end_date, success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, created_at ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, created_at ]`, `[ start_date, end_date, success, created_at ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, created_at ]`, `[ start_date, path, success, created_at ]`, `[ start_date, remote_ip, success, created_at ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, created_at ]`, `[ end_date, path, success, created_at ]`, `[ end_date, remote_ip, success, created_at ]`, `[ path, remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, created_at ]`, `[ start_date, end_date, path, success, created_at ]`, `[ start_date, end_date, remote_ip, success, created_at ]`, `[ start_date, path, remote_ip, success, created_at ]` or `[ end_date, path, remote_ip, success, created_at ]`.
53
- # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, created_at ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, created_at ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, created_at ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, created_at ]`, `[ start_date, success, created_at ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, created_at ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, created_at ]`, `[ end_date, success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, created_at ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, created_at ]`, `[ start_date, end_date, success, created_at ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, created_at ]`, `[ start_date, path, success, created_at ]`, `[ start_date, remote_ip, success, created_at ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, created_at ]`, `[ end_date, path, success, created_at ]`, `[ end_date, remote_ip, success, created_at ]`, `[ path, remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, created_at ]`, `[ start_date, end_date, path, success, created_at ]`, `[ start_date, end_date, remote_ip, success, created_at ]`, `[ start_date, path, remote_ip, success, created_at ]` or `[ end_date, path, remote_ip, success, created_at ]`.
54
- # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, created_at ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, created_at ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, created_at ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, created_at ]`, `[ start_date, success, created_at ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, created_at ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, created_at ]`, `[ end_date, success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, created_at ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, created_at ]`, `[ start_date, end_date, success, created_at ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, created_at ]`, `[ start_date, path, success, created_at ]`, `[ start_date, remote_ip, success, created_at ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, created_at ]`, `[ end_date, path, success, created_at ]`, `[ end_date, remote_ip, success, created_at ]`, `[ path, remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, created_at ]`, `[ start_date, end_date, path, success, created_at ]`, `[ start_date, end_date, remote_ip, success, created_at ]`, `[ start_date, path, remote_ip, success, created_at ]` or `[ end_date, path, remote_ip, success, created_at ]`.
55
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, created_at ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, created_at ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, created_at ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, created_at ]`, `[ start_date, success, created_at ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, created_at ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, created_at ]`, `[ end_date, success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, created_at ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, created_at ]`, `[ start_date, end_date, success, created_at ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, created_at ]`, `[ start_date, path, success, created_at ]`, `[ start_date, remote_ip, success, created_at ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, created_at ]`, `[ end_date, path, success, created_at ]`, `[ end_date, remote_ip, success, created_at ]`, `[ path, remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, created_at ]`, `[ start_date, end_date, path, success, created_at ]`, `[ start_date, end_date, remote_ip, success, created_at ]`, `[ start_date, path, remote_ip, success, created_at ]` or `[ end_date, path, remote_ip, success, created_at ]`.
56
- # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, created_at ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, created_at ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, created_at ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, created_at ]`, `[ start_date, success, created_at ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, created_at ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, created_at ]`, `[ end_date, success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, created_at ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, created_at ]`, `[ start_date, end_date, success, created_at ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, created_at ]`, `[ start_date, path, success, created_at ]`, `[ start_date, remote_ip, success, created_at ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, created_at ]`, `[ end_date, path, success, created_at ]`, `[ end_date, remote_ip, success, created_at ]`, `[ path, remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, created_at ]`, `[ start_date, end_date, path, success, created_at ]`, `[ start_date, end_date, remote_ip, success, created_at ]`, `[ start_date, path, remote_ip, success, created_at ]` or `[ end_date, path, remote_ip, success, created_at ]`.
57
- # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, created_at ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, created_at ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, created_at ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, created_at ]`, `[ start_date, success, created_at ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, created_at ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, created_at ]`, `[ end_date, success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, created_at ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, created_at ]`, `[ start_date, end_date, success, created_at ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, created_at ]`, `[ start_date, path, success, created_at ]`, `[ start_date, remote_ip, success, created_at ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, created_at ]`, `[ end_date, path, success, created_at ]`, `[ end_date, remote_ip, success, created_at ]`, `[ path, remote_ip, success, created_at ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, created_at ]`, `[ start_date, end_date, path, success, created_at ]`, `[ start_date, end_date, remote_ip, success, created_at ]`, `[ start_date, path, remote_ip, success, created_at ]` or `[ end_date, path, remote_ip, success, created_at ]`.
52
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `remote_ip`, `success` or `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
53
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
54
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
55
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
56
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
57
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
58
58
  def list(params=None, options=None):
59
59
  if not isinstance(params, dict):
60
60
  params = {}
@@ -71,9 +71,6 @@ class RemoteMountBackend:
71
71
  )
72
72
 
73
73
  # Parameters:
74
- # canary_file_path (required) - string - Path to the canary file used for health checks.
75
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
76
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
77
74
  # enabled - boolean - True if this backend is enabled.
78
75
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
79
76
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -84,6 +81,8 @@ class RemoteMountBackend:
84
81
  # priority - int64 - Priority of this backend.
85
82
  # remote_path - string - Path on the remote server to treat as the root of this mount.
86
83
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
84
+ # canary_file_path - string - Path to the canary file used for health checks.
85
+ # remote_server_id - int64 - The remote server that this backend is associated with.
87
86
  def update(self, params=None):
88
87
  if not isinstance(params, dict):
89
88
  params = {}
@@ -94,34 +93,8 @@ class RemoteMountBackend:
94
93
  raise MissingParameterError("Current object doesn't have a id")
95
94
  if "id" not in params:
96
95
  raise MissingParameterError("Parameter missing: id")
97
- if "canary_file_path" not in params:
98
- raise MissingParameterError("Parameter missing: canary_file_path")
99
- if "remote_server_mount_id" not in params:
100
- raise MissingParameterError(
101
- "Parameter missing: remote_server_mount_id"
102
- )
103
- if "remote_server_id" not in params:
104
- raise MissingParameterError("Parameter missing: remote_server_id")
105
96
  if "id" in params and not isinstance(params["id"], int):
106
97
  raise InvalidParameterError("Bad parameter: id must be an int")
107
- if "canary_file_path" in params and not isinstance(
108
- params["canary_file_path"], str
109
- ):
110
- raise InvalidParameterError(
111
- "Bad parameter: canary_file_path must be an str"
112
- )
113
- if "remote_server_mount_id" in params and not isinstance(
114
- params["remote_server_mount_id"], int
115
- ):
116
- raise InvalidParameterError(
117
- "Bad parameter: remote_server_mount_id must be an int"
118
- )
119
- if "remote_server_id" in params and not isinstance(
120
- params["remote_server_id"], int
121
- ):
122
- raise InvalidParameterError(
123
- "Bad parameter: remote_server_id must be an int"
124
- )
125
98
  if "fall" in params and not isinstance(params["fall"], int):
126
99
  raise InvalidParameterError("Bad parameter: fall must be an int")
127
100
  if "health_check_type" in params and not isinstance(
@@ -146,6 +119,18 @@ class RemoteMountBackend:
146
119
  )
147
120
  if "rise" in params and not isinstance(params["rise"], int):
148
121
  raise InvalidParameterError("Bad parameter: rise must be an int")
122
+ if "canary_file_path" in params and not isinstance(
123
+ params["canary_file_path"], str
124
+ ):
125
+ raise InvalidParameterError(
126
+ "Bad parameter: canary_file_path must be an str"
127
+ )
128
+ if "remote_server_id" in params and not isinstance(
129
+ params["remote_server_id"], int
130
+ ):
131
+ raise InvalidParameterError(
132
+ "Bad parameter: remote_server_id must be an int"
133
+ )
149
134
  response, _options = Api.send_request(
150
135
  "PATCH",
151
136
  "/remote_mount_backends/{id}".format(id=params["id"]),
@@ -237,9 +222,6 @@ def get(id, params=None, options=None):
237
222
 
238
223
 
239
224
  # Parameters:
240
- # canary_file_path (required) - string - Path to the canary file used for health checks.
241
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
242
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
243
225
  # enabled - boolean - True if this backend is enabled.
244
226
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
245
227
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -250,29 +232,14 @@ def get(id, params=None, options=None):
250
232
  # priority - int64 - Priority of this backend.
251
233
  # remote_path - string - Path on the remote server to treat as the root of this mount.
252
234
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
235
+ # canary_file_path (required) - string - Path to the canary file used for health checks.
236
+ # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
237
+ # remote_server_id (required) - int64 - The remote server that this backend is associated with.
253
238
  def create(params=None, options=None):
254
239
  if not isinstance(params, dict):
255
240
  params = {}
256
241
  if not isinstance(options, dict):
257
242
  options = {}
258
- if "canary_file_path" in params and not isinstance(
259
- params["canary_file_path"], str
260
- ):
261
- raise InvalidParameterError(
262
- "Bad parameter: canary_file_path must be an str"
263
- )
264
- if "remote_server_mount_id" in params and not isinstance(
265
- params["remote_server_mount_id"], int
266
- ):
267
- raise InvalidParameterError(
268
- "Bad parameter: remote_server_mount_id must be an int"
269
- )
270
- if "remote_server_id" in params and not isinstance(
271
- params["remote_server_id"], int
272
- ):
273
- raise InvalidParameterError(
274
- "Bad parameter: remote_server_id must be an int"
275
- )
276
243
  if "enabled" in params and not isinstance(params["enabled"], bool):
277
244
  raise InvalidParameterError("Bad parameter: enabled must be an bool")
278
245
  if "fall" in params and not isinstance(params["fall"], int):
@@ -311,6 +278,24 @@ def create(params=None, options=None):
311
278
  )
312
279
  if "rise" in params and not isinstance(params["rise"], int):
313
280
  raise InvalidParameterError("Bad parameter: rise must be an int")
281
+ if "canary_file_path" in params and not isinstance(
282
+ params["canary_file_path"], str
283
+ ):
284
+ raise InvalidParameterError(
285
+ "Bad parameter: canary_file_path must be an str"
286
+ )
287
+ if "remote_server_mount_id" in params and not isinstance(
288
+ params["remote_server_mount_id"], int
289
+ ):
290
+ raise InvalidParameterError(
291
+ "Bad parameter: remote_server_mount_id must be an int"
292
+ )
293
+ if "remote_server_id" in params and not isinstance(
294
+ params["remote_server_id"], int
295
+ ):
296
+ raise InvalidParameterError(
297
+ "Bad parameter: remote_server_id must be an int"
298
+ )
314
299
  if "canary_file_path" not in params:
315
300
  raise MissingParameterError("Parameter missing: canary_file_path")
316
301
  if "remote_server_mount_id" not in params:
@@ -345,9 +330,6 @@ def reset_status(id, params=None, options=None):
345
330
 
346
331
 
347
332
  # Parameters:
348
- # canary_file_path (required) - string - Path to the canary file used for health checks.
349
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
350
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
351
333
  # enabled - boolean - True if this backend is enabled.
352
334
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
353
335
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -358,6 +340,8 @@ def reset_status(id, params=None, options=None):
358
340
  # priority - int64 - Priority of this backend.
359
341
  # remote_path - string - Path on the remote server to treat as the root of this mount.
360
342
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
343
+ # canary_file_path - string - Path to the canary file used for health checks.
344
+ # remote_server_id - int64 - The remote server that this backend is associated with.
361
345
  def update(id, params=None, options=None):
362
346
  if not isinstance(params, dict):
363
347
  params = {}
@@ -366,24 +350,6 @@ def update(id, params=None, options=None):
366
350
  params["id"] = id
367
351
  if "id" in params and not isinstance(params["id"], int):
368
352
  raise InvalidParameterError("Bad parameter: id must be an int")
369
- if "canary_file_path" in params and not isinstance(
370
- params["canary_file_path"], str
371
- ):
372
- raise InvalidParameterError(
373
- "Bad parameter: canary_file_path must be an str"
374
- )
375
- if "remote_server_mount_id" in params and not isinstance(
376
- params["remote_server_mount_id"], int
377
- ):
378
- raise InvalidParameterError(
379
- "Bad parameter: remote_server_mount_id must be an int"
380
- )
381
- if "remote_server_id" in params and not isinstance(
382
- params["remote_server_id"], int
383
- ):
384
- raise InvalidParameterError(
385
- "Bad parameter: remote_server_id must be an int"
386
- )
387
353
  if "enabled" in params and not isinstance(params["enabled"], bool):
388
354
  raise InvalidParameterError("Bad parameter: enabled must be an bool")
389
355
  if "fall" in params and not isinstance(params["fall"], int):
@@ -422,16 +388,20 @@ def update(id, params=None, options=None):
422
388
  )
423
389
  if "rise" in params and not isinstance(params["rise"], int):
424
390
  raise InvalidParameterError("Bad parameter: rise must be an int")
391
+ if "canary_file_path" in params and not isinstance(
392
+ params["canary_file_path"], str
393
+ ):
394
+ raise InvalidParameterError(
395
+ "Bad parameter: canary_file_path must be an str"
396
+ )
397
+ if "remote_server_id" in params and not isinstance(
398
+ params["remote_server_id"], int
399
+ ):
400
+ raise InvalidParameterError(
401
+ "Bad parameter: remote_server_id must be an int"
402
+ )
425
403
  if "id" not in params:
426
404
  raise MissingParameterError("Parameter missing: id")
427
- if "canary_file_path" not in params:
428
- raise MissingParameterError("Parameter missing: canary_file_path")
429
- if "remote_server_mount_id" not in params:
430
- raise MissingParameterError(
431
- "Parameter missing: remote_server_mount_id"
432
- )
433
- if "remote_server_id" not in params:
434
- raise MissingParameterError("Parameter missing: remote_server_id")
435
405
  response, options = Api.send_request(
436
406
  "PATCH",
437
407
  "/remote_mount_backends/{id}".format(id=params["id"]),