| Index: generated/googleapis/lib/vault/v1.dart
|
| diff --git a/generated/googleapis/lib/vault/v1.dart b/generated/googleapis/lib/vault/v1.dart
|
| index a2d5a7b4aad5514850a032e9d97b7618ac3a656b..fa35ca6918a6409897fe9b2acb4c85782b9620de 100644
|
| --- a/generated/googleapis/lib/vault/v1.dart
|
| +++ b/generated/googleapis/lib/vault/v1.dart
|
| @@ -9,48 +9,47 @@ import 'dart:convert' as convert;
|
| import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| import 'package:http/http.dart' as http;
|
|
|
| -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| - ApiRequestError, DetailedApiRequestError;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
|
| + show ApiRequestError, DetailedApiRequestError;
|
|
|
| const core.String USER_AGENT = 'dart-api-client vault/v1';
|
|
|
| class VaultApi {
|
| -
|
| final commons.ApiRequester _requester;
|
|
|
| MattersResourceApi get matters => new MattersResourceApi(_requester);
|
|
|
| - VaultApi(http.Client client, {core.String rootUrl: "https://vault.googleapis.com/", core.String servicePath: ""}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + VaultApi(http.Client client,
|
| + {core.String rootUrl: "https://vault.googleapis.com/",
|
| + core.String servicePath: ""})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class MattersResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| MattersHoldsResourceApi get holds => new MattersHoldsResourceApi(_requester);
|
|
|
| - MattersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Adds an account as a matter collaborator.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [MatterPermission].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<MatterPermission> addPermissions(AddMatterPermissionsRequest request, core.String matterId) {
|
| + MattersResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Adds an account as a matter collaborator.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [MatterPermission].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<MatterPermission> addPermissions(
|
| + AddMatterPermissionsRequest request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -65,36 +64,36 @@ class MattersResourceApi {
|
| throw new core.ArgumentError("Parameter matterId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':addPermissions';
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + ':addPermissions';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new MatterPermission.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Closes the specified matter. Returns matter with updated state.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [CloseMatterResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<CloseMatterResponse> close(CloseMatterRequest request, core.String matterId) {
|
| + /// Closes the specified matter. Returns matter with updated state.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [CloseMatterResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<CloseMatterResponse> close(
|
| + CloseMatterRequest request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -109,33 +108,31 @@ class MattersResourceApi {
|
| throw new core.ArgumentError("Parameter matterId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':close';
|
| + _url =
|
| + 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':close';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new CloseMatterResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Creates a new matter. Returns created matter with default view.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [Matter].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Creates a new matter. Returns created matter with default view.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [Matter].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Matter> create(Matter request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -150,31 +147,28 @@ class MattersResourceApi {
|
|
|
| _url = 'v1/matters';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Matter.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Deletes the specified matter. Returns matter with updated state.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID
|
| - *
|
| - * Completes with a [Matter].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Deletes the specified matter. Returns matter with updated state.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID
|
| + ///
|
| + /// Completes with a [Matter].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Matter> delete(core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -189,37 +183,34 @@ class MattersResourceApi {
|
|
|
| _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Matter.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Gets the specified matter.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [view] - Specifies which parts of the Matter to return in the response.
|
| - * Possible string values are:
|
| - * - "VIEW_UNSPECIFIED" : A VIEW_UNSPECIFIED.
|
| - * - "BASIC" : A BASIC.
|
| - * - "FULL" : A FULL.
|
| - *
|
| - * Completes with a [Matter].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Gets the specified matter.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [view] - Specifies which parts of the Matter to return in the response.
|
| + /// Possible string values are:
|
| + /// - "VIEW_UNSPECIFIED" : A VIEW_UNSPECIFIED.
|
| + /// - "BASIC" : A BASIC.
|
| + /// - "FULL" : A FULL.
|
| + ///
|
| + /// Completes with a [Matter].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Matter> get(core.String matterId, {core.String view}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -237,41 +228,39 @@ class MattersResourceApi {
|
|
|
| _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Matter.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists matters the user has access to.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [pageToken] - The pagination token as returned in the response.
|
| - *
|
| - * [pageSize] - The number of matters to return in the response.
|
| - * Default and maximum are 100.
|
| - *
|
| - * [view] - Specifies which parts of the matter to return in response.
|
| - * Possible string values are:
|
| - * - "VIEW_UNSPECIFIED" : A VIEW_UNSPECIFIED.
|
| - * - "BASIC" : A BASIC.
|
| - * - "FULL" : A FULL.
|
| - *
|
| - * Completes with a [ListMattersResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ListMattersResponse> list({core.String pageToken, core.int pageSize, core.String view}) {
|
| + /// Lists matters the user has access to.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [pageToken] - The pagination token as returned in the response.
|
| + ///
|
| + /// [pageSize] - The number of matters to return in the response.
|
| + /// Default and maximum are 100.
|
| + ///
|
| + /// [view] - Specifies which parts of the matter to return in response.
|
| + /// Possible string values are:
|
| + /// - "VIEW_UNSPECIFIED" : A VIEW_UNSPECIFIED.
|
| + /// - "BASIC" : A BASIC.
|
| + /// - "FULL" : A FULL.
|
| + ///
|
| + /// Completes with a [ListMattersResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ListMattersResponse> list(
|
| + {core.String pageToken, core.int pageSize, core.String view}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -291,34 +280,32 @@ class MattersResourceApi {
|
|
|
| _url = 'v1/matters';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ListMattersResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Removes an account as a matter collaborator.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Empty> removePermissions(RemoveMatterPermissionsRequest request, core.String matterId) {
|
| + /// Removes an account as a matter collaborator.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Empty> removePermissions(
|
| + RemoveMatterPermissionsRequest request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -333,36 +320,36 @@ class MattersResourceApi {
|
| throw new core.ArgumentError("Parameter matterId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':removePermissions';
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + ':removePermissions';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Reopens the specified matter. Returns matter with updated state.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [ReopenMatterResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ReopenMatterResponse> reopen(ReopenMatterRequest request, core.String matterId) {
|
| + /// Reopens the specified matter. Returns matter with updated state.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [ReopenMatterResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ReopenMatterResponse> reopen(
|
| + ReopenMatterRequest request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -377,36 +364,35 @@ class MattersResourceApi {
|
| throw new core.ArgumentError("Parameter matterId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':reopen';
|
| + _url =
|
| + 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':reopen';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ReopenMatterResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Undeletes the specified matter. Returns matter with updated state.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [Matter].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Matter> undelete(UndeleteMatterRequest request, core.String matterId) {
|
| + /// Undeletes the specified matter. Returns matter with updated state.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [Matter].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Matter> undelete(
|
| + UndeleteMatterRequest request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -421,38 +407,37 @@ class MattersResourceApi {
|
| throw new core.ArgumentError("Parameter matterId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':undelete';
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + ':undelete';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Matter.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the specified matter.
|
| - * This updates only the name and description of the matter, identified by
|
| - * matter id. Changes to any other fields are ignored.
|
| - * Returns the default view of the matter.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [Matter].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Updates the specified matter.
|
| + /// This updates only the name and description of the matter, identified by
|
| + /// matter id. Changes to any other fields are ignored.
|
| + /// Returns the default view of the matter.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [Matter].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Matter> update(Matter request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -470,44 +455,39 @@ class MattersResourceApi {
|
|
|
| _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Matter.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class MattersHoldsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - MattersHoldsAccountsResourceApi get accounts => new MattersHoldsAccountsResourceApi(_requester);
|
| -
|
| - MattersHoldsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Creates a hold in the given matter.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * Completes with a [Hold].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + MattersHoldsAccountsResourceApi get accounts =>
|
| + new MattersHoldsAccountsResourceApi(_requester);
|
| +
|
| + MattersHoldsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Creates a hold in the given matter.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// Completes with a [Hold].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Hold> create(Hold request, core.String matterId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -523,35 +503,33 @@ class MattersHoldsResourceApi {
|
| throw new core.ArgumentError("Parameter matterId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds';
|
| + _url =
|
| + 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Hold.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Removes a hold by ID. This will release any HeldAccounts on this Hold.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [holdId] - The hold ID.
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Removes a hold by ID. This will release any HeldAccounts on this Hold.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [holdId] - The hold ID.
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Empty> delete(core.String matterId, core.String holdId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -567,35 +545,35 @@ class MattersHoldsResourceApi {
|
| throw new core.ArgumentError("Parameter holdId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId');
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + '/holds/' +
|
| + commons.Escaper.ecapeVariable('$holdId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Gets a hold by ID.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [holdId] - The hold ID.
|
| - *
|
| - * Completes with a [Hold].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Gets a hold by ID.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [holdId] - The hold ID.
|
| + ///
|
| + /// Completes with a [Hold].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Hold> get(core.String matterId, core.String holdId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -611,42 +589,43 @@ class MattersHoldsResourceApi {
|
| throw new core.ArgumentError("Parameter holdId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId');
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + '/holds/' +
|
| + commons.Escaper.ecapeVariable('$holdId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Hold.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists holds within a matter. An empty page token in ListHoldsResponse
|
| - * denotes no more holds to list.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [pageToken] - The pagination token as returned in the response.
|
| - * An empty token means start from the beginning.
|
| - *
|
| - * [pageSize] - The number of holds to return in the response, between 0 and
|
| - * 100 inclusive.
|
| - * Leaving this empty, or as 0, is the same as page_size = 100.
|
| - *
|
| - * Completes with a [ListHoldsResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ListHoldsResponse> list(core.String matterId, {core.String pageToken, core.int pageSize}) {
|
| + /// Lists holds within a matter. An empty page token in ListHoldsResponse
|
| + /// denotes no more holds to list.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [pageToken] - The pagination token as returned in the response.
|
| + /// An empty token means start from the beginning.
|
| + ///
|
| + /// [pageSize] - The number of holds to return in the response, between 0 and
|
| + /// 100 inclusive.
|
| + /// Leaving this empty, or as 0, is the same as page_size = 100.
|
| + ///
|
| + /// Completes with a [ListHoldsResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ListHoldsResponse> list(core.String matterId,
|
| + {core.String pageToken, core.int pageSize}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -664,40 +643,39 @@ class MattersHoldsResourceApi {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds';
|
| + _url =
|
| + 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ListHoldsResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the OU and/or query parameters of a hold. You cannot add accounts
|
| - * to a hold that covers an OU, nor can you add OUs to a hold that covers
|
| - * individual accounts. Accounts listed in the hold will be ignored.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [holdId] - The ID of the hold.
|
| - *
|
| - * Completes with a [Hold].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Hold> update(Hold request, core.String matterId, core.String holdId) {
|
| + /// Updates the OU and/or query parameters of a hold. You cannot add accounts
|
| + /// to a hold that covers an OU, nor can you add OUs to a hold that covers
|
| + /// individual accounts. Accounts listed in the hold will be ignored.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [holdId] - The ID of the hold.
|
| + ///
|
| + /// Completes with a [Hold].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Hold> update(
|
| + Hold request, core.String matterId, core.String holdId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -715,49 +693,48 @@ class MattersHoldsResourceApi {
|
| throw new core.ArgumentError("Parameter holdId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId');
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + '/holds/' +
|
| + commons.Escaper.ecapeVariable('$holdId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Hold.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class MattersHoldsAccountsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - MattersHoldsAccountsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Adds a HeldAccount to a hold. Accounts can only be added to a hold that
|
| - * has no held_org_unit set. Attempting to add an account to an OU-based
|
| - * hold will result in an error.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [holdId] - The hold ID.
|
| - *
|
| - * Completes with a [HeldAccount].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<HeldAccount> create(HeldAccount request, core.String matterId, core.String holdId) {
|
| + MattersHoldsAccountsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Adds a HeldAccount to a hold. Accounts can only be added to a hold that
|
| + /// has no held_org_unit set. Attempting to add an account to an OU-based
|
| + /// hold will result in an error.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [holdId] - The hold ID.
|
| + ///
|
| + /// Completes with a [HeldAccount].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<HeldAccount> create(
|
| + HeldAccount request, core.String matterId, core.String holdId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -775,39 +752,41 @@ class MattersHoldsAccountsResourceApi {
|
| throw new core.ArgumentError("Parameter holdId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId') + '/accounts';
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + '/holds/' +
|
| + commons.Escaper.ecapeVariable('$holdId') +
|
| + '/accounts';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new HeldAccount.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Removes a HeldAccount from a hold. If this request leaves the hold with
|
| - * no held accounts, the hold will not apply to any accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [holdId] - The hold ID.
|
| - *
|
| - * [accountId] - The ID of the account to remove from the hold.
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Empty> delete(core.String matterId, core.String holdId, core.String accountId) {
|
| + /// Removes a HeldAccount from a hold. If this request leaves the hold with
|
| + /// no held accounts, the hold will not apply to any accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [holdId] - The hold ID.
|
| + ///
|
| + /// [accountId] - The ID of the account to remove from the hold.
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Empty> delete(
|
| + core.String matterId, core.String holdId, core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -825,39 +804,42 @@ class MattersHoldsAccountsResourceApi {
|
| throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + '/holds/' +
|
| + commons.Escaper.ecapeVariable('$holdId') +
|
| + '/accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists HeldAccounts for a hold. This will only list individually specified
|
| - * held accounts. If the hold is on an OU, then use
|
| - * <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>
|
| - * to enumerate its members.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [matterId] - The matter ID.
|
| - *
|
| - * [holdId] - The hold ID.
|
| - *
|
| - * Completes with a [ListHeldAccountsResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ListHeldAccountsResponse> list(core.String matterId, core.String holdId) {
|
| + /// Lists HeldAccounts for a hold. This will only list individually specified
|
| + /// held accounts. If the hold is on an OU, then use
|
| + /// <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>
|
| + /// to enumerate its members.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [matterId] - The matter ID.
|
| + ///
|
| + /// [holdId] - The hold ID.
|
| + ///
|
| + /// Completes with a [ListHeldAccountsResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ListHeldAccountsResponse> list(
|
| + core.String matterId, core.String holdId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -872,40 +854,37 @@ class MattersHoldsAccountsResourceApi {
|
| throw new core.ArgumentError("Parameter holdId is required.");
|
| }
|
|
|
| - _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId') + '/accounts';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListHeldAccountsResponse.fromJson(data));
|
| + _url = 'v1/matters/' +
|
| + commons.Escaper.ecapeVariable('$matterId') +
|
| + '/holds/' +
|
| + commons.Escaper.ecapeVariable('$holdId') +
|
| + '/accounts';
|
| +
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ListHeldAccountsResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/**
|
| - * Add an account with the permission specified. The role cannot be owner.
|
| - * If an account already has a role in the matter, it will be
|
| - * overwritten.
|
| - */
|
| +/// Add an account with the permission specified. The role cannot be owner.
|
| +/// If an account already has a role in the matter, it will be
|
| +/// overwritten.
|
| class AddMatterPermissionsRequest {
|
| - /**
|
| - * Only relevant if send_emails is true.
|
| - * True to CC requestor in the email message.
|
| - * False to not CC requestor.
|
| - */
|
| + /// Only relevant if send_emails is true.
|
| + /// True to CC requestor in the email message.
|
| + /// False to not CC requestor.
|
| core.bool ccMe;
|
| - /** The MatterPermission to add. */
|
| +
|
| + /// The MatterPermission to add.
|
| MatterPermission matterPermission;
|
| - /**
|
| - * True to send notification email to the added account.
|
| - * False to not send notification email.
|
| - */
|
| +
|
| + /// True to send notification email to the added account.
|
| + /// False to not send notification email.
|
| core.bool sendEmails;
|
|
|
| AddMatterPermissionsRequest();
|
| @@ -915,7 +894,8 @@ class AddMatterPermissionsRequest {
|
| ccMe = _json["ccMe"];
|
| }
|
| if (_json.containsKey("matterPermission")) {
|
| - matterPermission = new MatterPermission.fromJson(_json["matterPermission"]);
|
| + matterPermission =
|
| + new MatterPermission.fromJson(_json["matterPermission"]);
|
| }
|
| if (_json.containsKey("sendEmails")) {
|
| sendEmails = _json["sendEmails"];
|
| @@ -923,7 +903,8 @@ class AddMatterPermissionsRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (ccMe != null) {
|
| _json["ccMe"] = ccMe;
|
| }
|
| @@ -937,23 +918,22 @@ class AddMatterPermissionsRequest {
|
| }
|
| }
|
|
|
| -/** Close a matter by ID. */
|
| +/// Close a matter by ID.
|
| class CloseMatterRequest {
|
| -
|
| CloseMatterRequest();
|
|
|
| - CloseMatterRequest.fromJson(core.Map _json) {
|
| - }
|
| + CloseMatterRequest.fromJson(core.Map _json) {}
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Response to a CloseMatterRequest. */
|
| +/// Response to a CloseMatterRequest.
|
| class CloseMatterResponse {
|
| - /** The updated matter, with state CLOSED. */
|
| + /// The updated matter, with state CLOSED.
|
| Matter matter;
|
|
|
| CloseMatterResponse();
|
| @@ -965,7 +945,8 @@ class CloseMatterResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (matter != null) {
|
| _json["matter"] = (matter).toJson();
|
| }
|
| @@ -973,13 +954,15 @@ class CloseMatterResponse {
|
| }
|
| }
|
|
|
| -/** Corpus specific queries. */
|
| +/// Corpus specific queries.
|
| class CorpusQuery {
|
| - /** Details pertaining to Drive holds. If set, corpus must be Drive. */
|
| + /// Details pertaining to Drive holds. If set, corpus must be Drive.
|
| HeldDriveQuery driveQuery;
|
| - /** Details pertaining to Groups holds. If set, corpus must be Groups. */
|
| +
|
| + /// Details pertaining to Groups holds. If set, corpus must be Groups.
|
| HeldGroupsQuery groupsQuery;
|
| - /** Details pertaining to mail holds. If set, corpus must be mail. */
|
| +
|
| + /// Details pertaining to mail holds. If set, corpus must be mail.
|
| HeldMailQuery mailQuery;
|
|
|
| CorpusQuery();
|
| @@ -997,7 +980,8 @@ class CorpusQuery {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (driveQuery != null) {
|
| _json["driveQuery"] = (driveQuery).toJson();
|
| }
|
| @@ -1011,41 +995,36 @@ class CorpusQuery {
|
| }
|
| }
|
|
|
| -/**
|
| - * A generic empty message that you can re-use to avoid defining duplicated
|
| - * empty messages in your APIs. A typical example is to use it as the request
|
| - * or the response type of an API method. For instance:
|
| - *
|
| - * service Foo {
|
| - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| - * }
|
| - *
|
| - * The JSON representation for `Empty` is empty JSON object `{}`.
|
| - */
|
| +/// A generic empty message that you can re-use to avoid defining duplicated
|
| +/// empty messages in your APIs. A typical example is to use it as the request
|
| +/// or the response type of an API method. For instance:
|
| +///
|
| +/// service Foo {
|
| +/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| +/// }
|
| +///
|
| +/// The JSON representation for `Empty` is empty JSON object `{}`.
|
| class Empty {
|
| -
|
| Empty();
|
|
|
| - Empty.fromJson(core.Map _json) {
|
| - }
|
| + Empty.fromJson(core.Map _json) {}
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * An account being held in a particular hold. This structure is immutable.
|
| - * This can be either a single user or a google group, depending on the corpus.
|
| - */
|
| +/// An account being held in a particular hold. This structure is immutable.
|
| +/// This can be either a single user or a google group, depending on the
|
| +/// corpus.
|
| class HeldAccount {
|
| - /**
|
| - * The account's ID as provided by the
|
| - * <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
|
| - */
|
| + /// The account's ID as provided by the
|
| + /// <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
|
| core.String accountId;
|
| - /** When the account was put on hold. */
|
| +
|
| + /// When the account was put on hold.
|
| core.String holdTime;
|
|
|
| HeldAccount();
|
| @@ -1060,7 +1039,8 @@ class HeldAccount {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -1071,9 +1051,9 @@ class HeldAccount {
|
| }
|
| }
|
|
|
| -/** Query options for drive holds. */
|
| +/// Query options for drive holds.
|
| class HeldDriveQuery {
|
| - /** If true, include files in Team Drives in the hold. */
|
| + /// If true, include files in Team Drives in the hold.
|
| core.bool includeTeamDriveFiles;
|
|
|
| HeldDriveQuery();
|
| @@ -1085,7 +1065,8 @@ class HeldDriveQuery {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (includeTeamDriveFiles != null) {
|
| _json["includeTeamDriveFiles"] = includeTeamDriveFiles;
|
| }
|
| @@ -1093,19 +1074,18 @@ class HeldDriveQuery {
|
| }
|
| }
|
|
|
| -/** Query options for group holds. */
|
| +/// Query options for group holds.
|
| class HeldGroupsQuery {
|
| - /**
|
| - * The end date range for the search query. These timestamps are in GMT and
|
| - * rounded down to the start of the given date.
|
| - */
|
| + /// The end date range for the search query. These timestamps are in GMT and
|
| + /// rounded down to the start of the given date.
|
| core.String endTime;
|
| - /**
|
| - * The start date range for the search query. These timestamps are in GMT and
|
| - * rounded down to the start of the given date.
|
| - */
|
| +
|
| + /// The start date range for the search query. These timestamps are in GMT
|
| + /// and
|
| + /// rounded down to the start of the given date.
|
| core.String startTime;
|
| - /** The search terms for the hold. */
|
| +
|
| + /// The search terms for the hold.
|
| core.String terms;
|
|
|
| HeldGroupsQuery();
|
| @@ -1123,7 +1103,8 @@ class HeldGroupsQuery {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (endTime != null) {
|
| _json["endTime"] = endTime;
|
| }
|
| @@ -1137,19 +1118,18 @@ class HeldGroupsQuery {
|
| }
|
| }
|
|
|
| -/** Query options for mail holds. */
|
| +/// Query options for mail holds.
|
| class HeldMailQuery {
|
| - /**
|
| - * The end date range for the search query. These timestamps are in GMT and
|
| - * rounded down to the start of the given date.
|
| - */
|
| + /// The end date range for the search query. These timestamps are in GMT and
|
| + /// rounded down to the start of the given date.
|
| core.String endTime;
|
| - /**
|
| - * The start date range for the search query. These timestamps are in GMT and
|
| - * rounded down to the start of the given date.
|
| - */
|
| +
|
| + /// The start date range for the search query. These timestamps are in GMT
|
| + /// and
|
| + /// rounded down to the start of the given date.
|
| core.String startTime;
|
| - /** The search terms for the hold. */
|
| +
|
| + /// The search terms for the hold.
|
| core.String terms;
|
|
|
| HeldMailQuery();
|
| @@ -1167,7 +1147,8 @@ class HeldMailQuery {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (endTime != null) {
|
| _json["endTime"] = endTime;
|
| }
|
| @@ -1181,14 +1162,13 @@ class HeldMailQuery {
|
| }
|
| }
|
|
|
| -/**
|
| - * A organizational unit being held in a particular hold.
|
| - * This structure is immutable.
|
| - */
|
| +/// A organizational unit being held in a particular hold.
|
| +/// This structure is immutable.
|
| class HeldOrgUnit {
|
| - /** When the org unit was put on hold. This property is immutable. */
|
| + /// When the org unit was put on hold. This property is immutable.
|
| core.String holdTime;
|
| - /** The org unit's immutable ID as provided by the admin SDK. */
|
| +
|
| + /// The org unit's immutable ID as provided by the admin SDK.
|
| core.String orgUnitId;
|
|
|
| HeldOrgUnit();
|
| @@ -1203,7 +1183,8 @@ class HeldOrgUnit {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (holdTime != null) {
|
| _json["holdTime"] = holdTime;
|
| }
|
| @@ -1214,50 +1195,48 @@ class HeldOrgUnit {
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents a hold within Vault. A hold restricts purging of
|
| - * artifacts based on the combination of the query and accounts restrictions.
|
| - * A hold can be configured to either apply to an explicitly configured set
|
| - * of accounts, or can be applied to all members of an organizational unit.
|
| - */
|
| +/// Represents a hold within Vault. A hold restricts purging of
|
| +/// artifacts based on the combination of the query and accounts restrictions.
|
| +/// A hold can be configured to either apply to an explicitly configured set
|
| +/// of accounts, or can be applied to all members of an organizational unit.
|
| class Hold {
|
| - /**
|
| - * If set, the hold applies to the enumerated accounts and org_unit must be
|
| - * empty.
|
| - */
|
| + /// If set, the hold applies to the enumerated accounts and org_unit must be
|
| + /// empty.
|
| core.List<HeldAccount> accounts;
|
| - /**
|
| - * The corpus to be searched.
|
| - * Possible string values are:
|
| - * - "CORPUS_TYPE_UNSPECIFIED" : No corpus specified.
|
| - * - "DRIVE" : Drive.
|
| - * - "MAIL" : Mail.
|
| - * - "GROUPS" : Groups.
|
| - */
|
| +
|
| + /// The corpus to be searched.
|
| + /// Possible string values are:
|
| + /// - "CORPUS_TYPE_UNSPECIFIED" : No corpus specified.
|
| + /// - "DRIVE" : Drive.
|
| + /// - "MAIL" : Mail.
|
| + /// - "GROUPS" : Groups.
|
| core.String corpus;
|
| - /** The unique immutable ID of the hold. Assigned during creation. */
|
| +
|
| + /// The unique immutable ID of the hold. Assigned during creation.
|
| core.String holdId;
|
| - /** The name of the hold. */
|
| +
|
| + /// The name of the hold.
|
| core.String name;
|
| - /**
|
| - * If set, the hold applies to all members of the organizational unit and
|
| - * accounts must be empty. This property is mutable. For groups holds,
|
| - * set the accounts field.
|
| - */
|
| +
|
| + /// If set, the hold applies to all members of the organizational unit and
|
| + /// accounts must be empty. This property is mutable. For groups holds,
|
| + /// set the accounts field.
|
| HeldOrgUnit orgUnit;
|
| - /**
|
| - * The corpus-specific query. If set, the corpusQuery must match corpus
|
| - * type.
|
| - */
|
| +
|
| + /// The corpus-specific query. If set, the corpusQuery must match corpus
|
| + /// type.
|
| CorpusQuery query;
|
| - /** The last time this hold was modified. */
|
| +
|
| + /// The last time this hold was modified.
|
| core.String updateTime;
|
|
|
| Hold();
|
|
|
| Hold.fromJson(core.Map _json) {
|
| if (_json.containsKey("accounts")) {
|
| - accounts = _json["accounts"].map((value) => new HeldAccount.fromJson(value)).toList();
|
| + accounts = _json["accounts"]
|
| + .map((value) => new HeldAccount.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("corpus")) {
|
| corpus = _json["corpus"];
|
| @@ -1280,7 +1259,8 @@ class Hold {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accounts != null) {
|
| _json["accounts"] = accounts.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1306,21 +1286,24 @@ class Hold {
|
| }
|
| }
|
|
|
| -/** Returns a list of held accounts for a hold. */
|
| +/// Returns a list of held accounts for a hold.
|
| class ListHeldAccountsResponse {
|
| - /** The held accounts on a hold. */
|
| + /// The held accounts on a hold.
|
| core.List<HeldAccount> accounts;
|
|
|
| ListHeldAccountsResponse();
|
|
|
| ListHeldAccountsResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("accounts")) {
|
| - accounts = _json["accounts"].map((value) => new HeldAccount.fromJson(value)).toList();
|
| + accounts = _json["accounts"]
|
| + .map((value) => new HeldAccount.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accounts != null) {
|
| _json["accounts"] = accounts.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1328,14 +1311,13 @@ class ListHeldAccountsResponse {
|
| }
|
| }
|
|
|
| -/** The holds for a matter. */
|
| +/// The holds for a matter.
|
| class ListHoldsResponse {
|
| - /** The list of holds. */
|
| + /// The list of holds.
|
| core.List<Hold> holds;
|
| - /**
|
| - * Page token to retrieve the next page of results in the list.
|
| - * If this is empty, then there are no more holds to list.
|
| - */
|
| +
|
| + /// Page token to retrieve the next page of results in the list.
|
| + /// If this is empty, then there are no more holds to list.
|
| core.String nextPageToken;
|
|
|
| ListHoldsResponse();
|
| @@ -1350,7 +1332,8 @@ class ListHoldsResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (holds != null) {
|
| _json["holds"] = holds.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1361,18 +1344,20 @@ class ListHoldsResponse {
|
| }
|
| }
|
|
|
| -/** Provides the list of matters. */
|
| +/// Provides the list of matters.
|
| class ListMattersResponse {
|
| - /** List of matters. */
|
| + /// List of matters.
|
| core.List<Matter> matters;
|
| - /** Page token to retrieve the next page of results in the list. */
|
| +
|
| + /// Page token to retrieve the next page of results in the list.
|
| core.String nextPageToken;
|
|
|
| ListMattersResponse();
|
|
|
| ListMattersResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("matters")) {
|
| - matters = _json["matters"].map((value) => new Matter.fromJson(value)).toList();
|
| + matters =
|
| + _json["matters"].map((value) => new Matter.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("nextPageToken")) {
|
| nextPageToken = _json["nextPageToken"];
|
| @@ -1380,7 +1365,8 @@ class ListMattersResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (matters != null) {
|
| _json["matters"] = matters.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1391,30 +1377,28 @@ class ListMattersResponse {
|
| }
|
| }
|
|
|
| -/** Represents a matter. */
|
| +/// Represents a matter.
|
| class Matter {
|
| - /** The description of the matter. */
|
| + /// The description of the matter.
|
| core.String description;
|
| - /**
|
| - * The matter ID which is generated by the server.
|
| - * Should be blank when creating a new matter.
|
| - */
|
| +
|
| + /// The matter ID which is generated by the server.
|
| + /// Should be blank when creating a new matter.
|
| core.String matterId;
|
| - /**
|
| - * List of users and access to the matter. Currently there is no programmer
|
| - * defined limit on the number of permissions a matter can have.
|
| - */
|
| +
|
| + /// List of users and access to the matter. Currently there is no programmer
|
| + /// defined limit on the number of permissions a matter can have.
|
| core.List<MatterPermission> matterPermissions;
|
| - /** The name of the matter. */
|
| +
|
| + /// The name of the matter.
|
| core.String name;
|
| - /**
|
| - * The state of the matter.
|
| - * Possible string values are:
|
| - * - "STATE_UNSPECIFIED" : The matter has no specified state.
|
| - * - "OPEN" : This matter is open.
|
| - * - "CLOSED" : This matter is closed.
|
| - * - "DELETED" : This matter is deleted.
|
| - */
|
| +
|
| + /// The state of the matter.
|
| + /// Possible string values are:
|
| + /// - "STATE_UNSPECIFIED" : The matter has no specified state.
|
| + /// - "OPEN" : This matter is open.
|
| + /// - "CLOSED" : This matter is closed.
|
| + /// - "DELETED" : This matter is deleted.
|
| core.String state;
|
|
|
| Matter();
|
| @@ -1427,7 +1411,9 @@ class Matter {
|
| matterId = _json["matterId"];
|
| }
|
| if (_json.containsKey("matterPermissions")) {
|
| - matterPermissions = _json["matterPermissions"].map((value) => new MatterPermission.fromJson(value)).toList();
|
| + matterPermissions = _json["matterPermissions"]
|
| + .map((value) => new MatterPermission.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| @@ -1438,7 +1424,8 @@ class Matter {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| @@ -1446,7 +1433,8 @@ class Matter {
|
| _json["matterId"] = matterId;
|
| }
|
| if (matterPermissions != null) {
|
| - _json["matterPermissions"] = matterPermissions.map((value) => (value).toJson()).toList();
|
| + _json["matterPermissions"] =
|
| + matterPermissions.map((value) => (value).toJson()).toList();
|
| }
|
| if (name != null) {
|
| _json["name"] = name;
|
| @@ -1458,24 +1446,19 @@ class Matter {
|
| }
|
| }
|
|
|
| -/**
|
| - * Currently each matter only has one owner, and all others are collaborators.
|
| - * When an account is purged, its corresponding MatterPermission resources
|
| - * cease to exist.
|
| - */
|
| +/// Currently each matter only has one owner, and all others are collaborators.
|
| +/// When an account is purged, its corresponding MatterPermission resources
|
| +/// cease to exist.
|
| class MatterPermission {
|
| - /**
|
| - * The account id, as provided by <a
|
| - * href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
|
| - */
|
| + /// The account id, as provided by <a
|
| + /// href="https://developers.google.com/admin-sdk/">Admin SDK</a>.
|
| core.String accountId;
|
| - /**
|
| - * The user's role in this matter.
|
| - * Possible string values are:
|
| - * - "ROLE_UNSPECIFIED" : No role assigned.
|
| - * - "COLLABORATOR" : A collaborator to the matter.
|
| - * - "OWNER" : The owner of the matter.
|
| - */
|
| +
|
| + /// The user's role in this matter.
|
| + /// Possible string values are:
|
| + /// - "ROLE_UNSPECIFIED" : No role assigned.
|
| + /// - "COLLABORATOR" : A collaborator to the matter.
|
| + /// - "OWNER" : The owner of the matter.
|
| core.String role;
|
|
|
| MatterPermission();
|
| @@ -1490,7 +1473,8 @@ class MatterPermission {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -1501,9 +1485,9 @@ class MatterPermission {
|
| }
|
| }
|
|
|
| -/** Remove an account as a matter collaborator. */
|
| +/// Remove an account as a matter collaborator.
|
| class RemoveMatterPermissionsRequest {
|
| - /** The account ID. */
|
| + /// The account ID.
|
| core.String accountId;
|
|
|
| RemoveMatterPermissionsRequest();
|
| @@ -1515,7 +1499,8 @@ class RemoveMatterPermissionsRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -1523,23 +1508,22 @@ class RemoveMatterPermissionsRequest {
|
| }
|
| }
|
|
|
| -/** Reopen a matter by ID. */
|
| +/// Reopen a matter by ID.
|
| class ReopenMatterRequest {
|
| -
|
| ReopenMatterRequest();
|
|
|
| - ReopenMatterRequest.fromJson(core.Map _json) {
|
| - }
|
| + ReopenMatterRequest.fromJson(core.Map _json) {}
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Response to a ReopenMatterRequest. */
|
| +/// Response to a ReopenMatterRequest.
|
| class ReopenMatterResponse {
|
| - /** The updated matter, with state OPEN. */
|
| + /// The updated matter, with state OPEN.
|
| Matter matter;
|
|
|
| ReopenMatterResponse();
|
| @@ -1551,7 +1535,8 @@ class ReopenMatterResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (matter != null) {
|
| _json["matter"] = (matter).toJson();
|
| }
|
| @@ -1559,16 +1544,15 @@ class ReopenMatterResponse {
|
| }
|
| }
|
|
|
| -/** Undelete a matter by ID. */
|
| +/// Undelete a matter by ID.
|
| class UndeleteMatterRequest {
|
| -
|
| UndeleteMatterRequest();
|
|
|
| - UndeleteMatterRequest.fromJson(core.Map _json) {
|
| - }
|
| + UndeleteMatterRequest.fromJson(core.Map _json) {}
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| return _json;
|
| }
|
| }
|
|
|