@@ -159,7 +159,7 @@ def exists(self, client=None):
159
159
except NotFound :
160
160
return False
161
161
162
- def reload (self , client = None , fields = None ):
162
+ def reload (self , client = None ):
163
163
"""API call: reload the config via a ``GET`` request.
164
164
165
165
This method will reload the newest data for the config.
@@ -171,25 +171,15 @@ def reload(self, client=None, fields=None):
171
171
:data:`NoneType <types.NoneType>`
172
172
:param client: the client to use. If not passed, falls back to
173
173
the client stored on the current config.
174
-
175
- :type fields: string or ``NoneType``
176
- :param fields: Selector specifying which fields to include in a
177
- partial response. Must be a list of fields. For example
178
- to get a partial response with just the name and
179
- description: 'name,description'
180
174
"""
181
175
client = self ._require_client (client )
182
- query_params = {}
183
- if fields is not None :
184
- query_params ['fields' ] = fields
185
176
186
177
# We assume the config exists. If it doesn't it will raise a NotFound
187
178
# exception.
188
- resp = client .connection .api_request (method = 'GET' , path = self .path ,
189
- query_params = query_params )
179
+ resp = client .connection .api_request (method = 'GET' , path = self .path )
190
180
self ._set_properties (api_response = resp )
191
181
192
- def get_variable (self , variable_name , fields = None , client = None ):
182
+ def get_variable (self , variable_name , client = None ):
193
183
"""API call: get a variable via a ``GET`` request.
194
184
195
185
This will return None if the variable doesn't exist::
@@ -205,12 +195,6 @@ def get_variable(self, variable_name, fields=None, client=None):
205
195
:type variable_name: string
206
196
:param variable_name: The name of the variable to retrieve.
207
197
208
- :type fields: string or ``NoneType``
209
- :param fields: Selector specifying which fields to include in a
210
- partial response. Must be a list of fields. For example
211
- to get a partial response with just the name and value:
212
- 'name,value'
213
-
214
198
:type client: :class:`~google.cloud.runtimeconfig.client.Client` or
215
199
``NoneType``
216
200
:param client: Optional. The client to use. If not passed, falls back
@@ -222,13 +206,12 @@ def get_variable(self, variable_name, fields=None, client=None):
222
206
client = self ._require_client (client )
223
207
variable = Variable (config = self , name = variable_name )
224
208
try :
225
- variable .reload (fields = fields , client = client )
209
+ variable .reload (client = client )
226
210
return variable
227
211
except NotFound :
228
212
return None
229
213
230
- def list_variables (self , page_size = None , page_token = None , filter_ = None ,
231
- fields = None , client = None ):
214
+ def list_variables (self , page_size = None , page_token = None , client = None ):
232
215
"""API call: list variables for this config.
233
216
234
217
This only lists variable names, not the values.
@@ -243,16 +226,6 @@ def list_variables(self, page_size=None, page_token=None, filter_=None,
243
226
:param page_token: opaque marker for the next "page" of variables. If
244
227
not passed, will return the first page of variables.
245
228
246
- :type filter_: string or ``NoneType``
247
- :param filter_: optional filter used to filter variables.
248
-
249
- :type fields: string or ``NoneType``
250
- :param fields: Selector specifying which fields to include in a
251
- partial response. Must be a list of fields. For example
252
- to get a partial response with just the next page token
253
- and the name of each variable returned:
254
- 'variables/name,nextPageToken'
255
-
256
229
:type client: :class:`~google.cloud.runtimeconfig.client.Client` or
257
230
``NoneType``
258
231
:param client: Optional. The client to use. If not passed, falls back
@@ -273,12 +246,6 @@ def list_variables(self, page_size=None, page_token=None, filter_=None,
273
246
if page_token is not None :
274
247
params ['pageToken' ] = page_token
275
248
276
- if filter_ is not None :
277
- params ['filter' ] = filter_
278
-
279
- if fields is not None :
280
- params ['fields' ] = fields
281
-
282
249
path = '%s/variables' % (self .path ,)
283
250
client = self ._require_client (client )
284
251
connection = client .connection
0 commit comments