| OLD | NEW | 
|---|
|  | 1 // This is a generated file (see the discoveryapis_generator project). | 
|  | 2 | 
| 1 library googleapis_beta.resourceviews.v1beta1; | 3 library googleapis_beta.resourceviews.v1beta1; | 
| 2 | 4 | 
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; | 
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; | 
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; | 
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; | 
| 7 | 9 | 
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 
|  | 11 import 'package:crypto/crypto.dart' as crypto; | 
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; | 
| 10 import '../src/common_internal.dart' as common_internal; |  | 
| 11 import '../common/common.dart' as common; |  | 
| 12 | 13 | 
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15     ApiRequestError, DetailedApiRequestError; | 
|  | 16 | 
|  | 17 const core.String USER_AGENT = 'dart-api-client resourceviews/v1beta1'; | 
| 15 | 18 | 
| 16 /** | 19 /** | 
| 17  * The Resource View API allows users to create and manage logical sets of | 20  * The Resource View API allows users to create and manage logical sets of | 
| 18  * Google Compute Engine instances. | 21  * Google Compute Engine instances. | 
| 19  */ | 22  */ | 
| 20 class ResourceviewsApi { | 23 class ResourceviewsApi { | 
| 21   /** View and manage your data across Google Cloud Platform services */ | 24   /** View and manage your data across Google Cloud Platform services */ | 
| 22   static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
      orm"; | 25   static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
      orm"; | 
| 23 | 26 | 
| 24   /** View and manage your Google Compute Engine resources */ | 27   /** View and manage your Google Compute Engine resources */ | 
| 25   static const ComputeScope = "https://www.googleapis.com/auth/compute"; | 28   static const ComputeScope = "https://www.googleapis.com/auth/compute"; | 
| 26 | 29 | 
| 27   /** View your Google Compute Engine resources */ | 30   /** View your Google Compute Engine resources */ | 
| 28   static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
      eadonly"; | 31   static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
      eadonly"; | 
| 29 | 32 | 
| 30   /** | 33   /** | 
| 31    * View and manage your Google Cloud Platform management resources and | 34    * View and manage your Google Cloud Platform management resources and | 
| 32    * deployment status information | 35    * deployment status information | 
| 33    */ | 36    */ | 
| 34   static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma
      n"; | 37   static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma
      n"; | 
| 35 | 38 | 
| 36   /** | 39   /** | 
| 37    * View your Google Cloud Platform management resources and deployment status | 40    * View your Google Cloud Platform management resources and deployment status | 
| 38    * information | 41    * information | 
| 39    */ | 42    */ | 
| 40   static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
      .cloudman.readonly"; | 43   static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
      .cloudman.readonly"; | 
| 41 | 44 | 
| 42 | 45 | 
| 43   final common_internal.ApiRequester _requester; | 46   final commons.ApiRequester _requester; | 
| 44 | 47 | 
| 45   RegionViewsResourceApi get regionViews => new RegionViewsResourceApi(_requeste
      r); | 48   RegionViewsResourceApi get regionViews => new RegionViewsResourceApi(_requeste
      r); | 
| 46   ZoneViewsResourceApi get zoneViews => new ZoneViewsResourceApi(_requester); | 49   ZoneViewsResourceApi get zoneViews => new ZoneViewsResourceApi(_requester); | 
| 47 | 50 | 
| 48   ResourceviewsApi(http.Client client, {core.String rootUrl: "https://www.google
      apis.com/", core.String servicePath: "resourceviews/v1beta1/projects/"}) : | 51   ResourceviewsApi(http.Client client, {core.String rootUrl: "https://www.google
      apis.com/", core.String servicePath: "resourceviews/v1beta1/projects/"}) : | 
| 49       _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
      ); | 52       _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
      GENT); | 
| 50 } | 53 } | 
| 51 | 54 | 
| 52 | 55 | 
| 53 /** Not documented yet. */ |  | 
| 54 class RegionViewsResourceApi { | 56 class RegionViewsResourceApi { | 
| 55   final common_internal.ApiRequester _requester; | 57   final commons.ApiRequester _requester; | 
| 56 | 58 | 
| 57   RegionViewsResourceApi(common_internal.ApiRequester client) : | 59   RegionViewsResourceApi(commons.ApiRequester client) : | 
| 58       _requester = client; | 60       _requester = client; | 
| 59 | 61 | 
| 60   /** | 62   /** | 
| 61    * Add resources to the view. | 63    * Add resources to the view. | 
| 62    * | 64    * | 
| 63    * [request] - The metadata request object. | 65    * [request] - The metadata request object. | 
| 64    * | 66    * | 
| 65    * Request parameters: | 67    * Request parameters: | 
| 66    * | 68    * | 
| 67    * [projectName] - The project name of the resource view. | 69    * [projectName] - The project name of the resource view. | 
| 68    * | 70    * | 
| 69    * [region] - The region name of the resource view. | 71    * [region] - The region name of the resource view. | 
| 70    * | 72    * | 
| 71    * [resourceViewName] - The name of the resource view. | 73    * [resourceViewName] - The name of the resource view. | 
| 72    * | 74    * | 
| 73    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 75    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 74    * error. | 76    * error. | 
| 75    * | 77    * | 
| 76    * If the used [http.Client] completes with an error when making a REST call, | 78    * If the used [http.Client] completes with an error when making a REST call, | 
| 77    * this method  will complete with the same error. | 79    * this method  will complete with the same error. | 
| 78    */ | 80    */ | 
| 79   async.Future addresources(RegionViewsAddResourcesRequest request, core.String 
      projectName, core.String region, core.String resourceViewName) { | 81   async.Future addresources(RegionViewsAddResourcesRequest request, core.String 
      projectName, core.String region, core.String resourceViewName) { | 
| 80     var _url = null; | 82     var _url = null; | 
| 81     var _queryParams = new core.Map(); | 83     var _queryParams = new core.Map(); | 
| 82     var _uploadMedia = null; | 84     var _uploadMedia = null; | 
| 83     var _uploadOptions = null; | 85     var _uploadOptions = null; | 
| 84     var _downloadOptions = common.DownloadOptions.Metadata; | 86     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 85     var _body = null; | 87     var _body = null; | 
| 86 | 88 | 
| 87     if (request != null) { | 89     if (request != null) { | 
| 88       _body = convert.JSON.encode((request).toJson()); | 90       _body = convert.JSON.encode((request).toJson()); | 
| 89     } | 91     } | 
| 90     if (projectName == null) { | 92     if (projectName == null) { | 
| 91       throw new core.ArgumentError("Parameter projectName is required."); | 93       throw new core.ArgumentError("Parameter projectName is required."); | 
| 92     } | 94     } | 
| 93     if (region == null) { | 95     if (region == null) { | 
| 94       throw new core.ArgumentError("Parameter region is required."); | 96       throw new core.ArgumentError("Parameter region is required."); | 
| 95     } | 97     } | 
| 96     if (resourceViewName == null) { | 98     if (resourceViewName == null) { | 
| 97       throw new core.ArgumentError("Parameter resourceViewName is required."); | 99       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 98     } | 100     } | 
| 99 | 101 | 
| 100     _downloadOptions = null; | 102     _downloadOptions = null; | 
| 101 | 103 | 
| 102     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews/' + common_i
      nternal.Escaper.ecapeVariable('$resourceViewName') + '/addResources'; | 104     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews/' + commons.Escaper.ecapeVar
      iable('$resourceViewName') + '/addResources'; | 
| 103 | 105 | 
| 104     var _response = _requester.request(_url, | 106     var _response = _requester.request(_url, | 
| 105                                        "POST", | 107                                        "POST", | 
| 106                                        body: _body, | 108                                        body: _body, | 
| 107                                        queryParams: _queryParams, | 109                                        queryParams: _queryParams, | 
| 108                                        uploadOptions: _uploadOptions, | 110                                        uploadOptions: _uploadOptions, | 
| 109                                        uploadMedia: _uploadMedia, | 111                                        uploadMedia: _uploadMedia, | 
| 110                                        downloadOptions: _downloadOptions); | 112                                        downloadOptions: _downloadOptions); | 
| 111     return _response.then((data) => null); | 113     return _response.then((data) => null); | 
| 112   } | 114   } | 
| 113 | 115 | 
| 114   /** | 116   /** | 
| 115    * Delete a resource view. | 117    * Delete a resource view. | 
| 116    * | 118    * | 
| 117    * Request parameters: | 119    * Request parameters: | 
| 118    * | 120    * | 
| 119    * [projectName] - The project name of the resource view. | 121    * [projectName] - The project name of the resource view. | 
| 120    * | 122    * | 
| 121    * [region] - The region name of the resource view. | 123    * [region] - The region name of the resource view. | 
| 122    * | 124    * | 
| 123    * [resourceViewName] - The name of the resource view. | 125    * [resourceViewName] - The name of the resource view. | 
| 124    * | 126    * | 
| 125    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 127    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 126    * error. | 128    * error. | 
| 127    * | 129    * | 
| 128    * If the used [http.Client] completes with an error when making a REST call, | 130    * If the used [http.Client] completes with an error when making a REST call, | 
| 129    * this method  will complete with the same error. | 131    * this method  will complete with the same error. | 
| 130    */ | 132    */ | 
| 131   async.Future delete(core.String projectName, core.String region, core.String r
      esourceViewName) { | 133   async.Future delete(core.String projectName, core.String region, core.String r
      esourceViewName) { | 
| 132     var _url = null; | 134     var _url = null; | 
| 133     var _queryParams = new core.Map(); | 135     var _queryParams = new core.Map(); | 
| 134     var _uploadMedia = null; | 136     var _uploadMedia = null; | 
| 135     var _uploadOptions = null; | 137     var _uploadOptions = null; | 
| 136     var _downloadOptions = common.DownloadOptions.Metadata; | 138     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 137     var _body = null; | 139     var _body = null; | 
| 138 | 140 | 
| 139     if (projectName == null) { | 141     if (projectName == null) { | 
| 140       throw new core.ArgumentError("Parameter projectName is required."); | 142       throw new core.ArgumentError("Parameter projectName is required."); | 
| 141     } | 143     } | 
| 142     if (region == null) { | 144     if (region == null) { | 
| 143       throw new core.ArgumentError("Parameter region is required."); | 145       throw new core.ArgumentError("Parameter region is required."); | 
| 144     } | 146     } | 
| 145     if (resourceViewName == null) { | 147     if (resourceViewName == null) { | 
| 146       throw new core.ArgumentError("Parameter resourceViewName is required."); | 148       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 147     } | 149     } | 
| 148 | 150 | 
| 149     _downloadOptions = null; | 151     _downloadOptions = null; | 
| 150 | 152 | 
| 151     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews/' + common_i
      nternal.Escaper.ecapeVariable('$resourceViewName'); | 153     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews/' + commons.Escaper.ecapeVar
      iable('$resourceViewName'); | 
| 152 | 154 | 
| 153     var _response = _requester.request(_url, | 155     var _response = _requester.request(_url, | 
| 154                                        "DELETE", | 156                                        "DELETE", | 
| 155                                        body: _body, | 157                                        body: _body, | 
| 156                                        queryParams: _queryParams, | 158                                        queryParams: _queryParams, | 
| 157                                        uploadOptions: _uploadOptions, | 159                                        uploadOptions: _uploadOptions, | 
| 158                                        uploadMedia: _uploadMedia, | 160                                        uploadMedia: _uploadMedia, | 
| 159                                        downloadOptions: _downloadOptions); | 161                                        downloadOptions: _downloadOptions); | 
| 160     return _response.then((data) => null); | 162     return _response.then((data) => null); | 
| 161   } | 163   } | 
| 162 | 164 | 
| 163   /** | 165   /** | 
| 164    * Get the information of a resource view. | 166    * Get the information of a resource view. | 
| 165    * | 167    * | 
| 166    * Request parameters: | 168    * Request parameters: | 
| 167    * | 169    * | 
| 168    * [projectName] - The project name of the resource view. | 170    * [projectName] - The project name of the resource view. | 
| 169    * | 171    * | 
| 170    * [region] - The region name of the resource view. | 172    * [region] - The region name of the resource view. | 
| 171    * | 173    * | 
| 172    * [resourceViewName] - The name of the resource view. | 174    * [resourceViewName] - The name of the resource view. | 
| 173    * | 175    * | 
| 174    * Completes with a [ResourceView]. | 176    * Completes with a [ResourceView]. | 
| 175    * | 177    * | 
| 176    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 178    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 177    * error. | 179    * error. | 
| 178    * | 180    * | 
| 179    * If the used [http.Client] completes with an error when making a REST call, | 181    * If the used [http.Client] completes with an error when making a REST call, | 
| 180    * this method  will complete with the same error. | 182    * this method  will complete with the same error. | 
| 181    */ | 183    */ | 
| 182   async.Future<ResourceView> get(core.String projectName, core.String region, co
      re.String resourceViewName) { | 184   async.Future<ResourceView> get(core.String projectName, core.String region, co
      re.String resourceViewName) { | 
| 183     var _url = null; | 185     var _url = null; | 
| 184     var _queryParams = new core.Map(); | 186     var _queryParams = new core.Map(); | 
| 185     var _uploadMedia = null; | 187     var _uploadMedia = null; | 
| 186     var _uploadOptions = null; | 188     var _uploadOptions = null; | 
| 187     var _downloadOptions = common.DownloadOptions.Metadata; | 189     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 188     var _body = null; | 190     var _body = null; | 
| 189 | 191 | 
| 190     if (projectName == null) { | 192     if (projectName == null) { | 
| 191       throw new core.ArgumentError("Parameter projectName is required."); | 193       throw new core.ArgumentError("Parameter projectName is required."); | 
| 192     } | 194     } | 
| 193     if (region == null) { | 195     if (region == null) { | 
| 194       throw new core.ArgumentError("Parameter region is required."); | 196       throw new core.ArgumentError("Parameter region is required."); | 
| 195     } | 197     } | 
| 196     if (resourceViewName == null) { | 198     if (resourceViewName == null) { | 
| 197       throw new core.ArgumentError("Parameter resourceViewName is required."); | 199       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 198     } | 200     } | 
| 199 | 201 | 
| 200 | 202 | 
| 201     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews/' + common_i
      nternal.Escaper.ecapeVariable('$resourceViewName'); | 203     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews/' + commons.Escaper.ecapeVar
      iable('$resourceViewName'); | 
| 202 | 204 | 
| 203     var _response = _requester.request(_url, | 205     var _response = _requester.request(_url, | 
| 204                                        "GET", | 206                                        "GET", | 
| 205                                        body: _body, | 207                                        body: _body, | 
| 206                                        queryParams: _queryParams, | 208                                        queryParams: _queryParams, | 
| 207                                        uploadOptions: _uploadOptions, | 209                                        uploadOptions: _uploadOptions, | 
| 208                                        uploadMedia: _uploadMedia, | 210                                        uploadMedia: _uploadMedia, | 
| 209                                        downloadOptions: _downloadOptions); | 211                                        downloadOptions: _downloadOptions); | 
| 210     return _response.then((data) => new ResourceView.fromJson(data)); | 212     return _response.then((data) => new ResourceView.fromJson(data)); | 
| 211   } | 213   } | 
| 212 | 214 | 
| 213   /** | 215   /** | 
| 214    * Create a resource view. | 216    * Create a resource view. | 
| 215    * | 217    * | 
| 216    * [request] - The metadata request object. | 218    * [request] - The metadata request object. | 
| 217    * | 219    * | 
| 218    * Request parameters: | 220    * Request parameters: | 
| 219    * | 221    * | 
| 220    * [projectName] - The project name of the resource view. | 222    * [projectName] - The project name of the resource view. | 
| 221    * | 223    * | 
| 222    * [region] - The region name of the resource view. | 224    * [region] - The region name of the resource view. | 
| 223    * | 225    * | 
| 224    * Completes with a [RegionViewsInsertResponse]. | 226    * Completes with a [RegionViewsInsertResponse]. | 
| 225    * | 227    * | 
| 226    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 228    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 227    * error. | 229    * error. | 
| 228    * | 230    * | 
| 229    * If the used [http.Client] completes with an error when making a REST call, | 231    * If the used [http.Client] completes with an error when making a REST call, | 
| 230    * this method  will complete with the same error. | 232    * this method  will complete with the same error. | 
| 231    */ | 233    */ | 
| 232   async.Future<RegionViewsInsertResponse> insert(ResourceView request, core.Stri
      ng projectName, core.String region) { | 234   async.Future<RegionViewsInsertResponse> insert(ResourceView request, core.Stri
      ng projectName, core.String region) { | 
| 233     var _url = null; | 235     var _url = null; | 
| 234     var _queryParams = new core.Map(); | 236     var _queryParams = new core.Map(); | 
| 235     var _uploadMedia = null; | 237     var _uploadMedia = null; | 
| 236     var _uploadOptions = null; | 238     var _uploadOptions = null; | 
| 237     var _downloadOptions = common.DownloadOptions.Metadata; | 239     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 238     var _body = null; | 240     var _body = null; | 
| 239 | 241 | 
| 240     if (request != null) { | 242     if (request != null) { | 
| 241       _body = convert.JSON.encode((request).toJson()); | 243       _body = convert.JSON.encode((request).toJson()); | 
| 242     } | 244     } | 
| 243     if (projectName == null) { | 245     if (projectName == null) { | 
| 244       throw new core.ArgumentError("Parameter projectName is required."); | 246       throw new core.ArgumentError("Parameter projectName is required."); | 
| 245     } | 247     } | 
| 246     if (region == null) { | 248     if (region == null) { | 
| 247       throw new core.ArgumentError("Parameter region is required."); | 249       throw new core.ArgumentError("Parameter region is required."); | 
| 248     } | 250     } | 
| 249 | 251 | 
| 250 | 252 | 
| 251     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews'; | 253     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews'; | 
| 252 | 254 | 
| 253     var _response = _requester.request(_url, | 255     var _response = _requester.request(_url, | 
| 254                                        "POST", | 256                                        "POST", | 
| 255                                        body: _body, | 257                                        body: _body, | 
| 256                                        queryParams: _queryParams, | 258                                        queryParams: _queryParams, | 
| 257                                        uploadOptions: _uploadOptions, | 259                                        uploadOptions: _uploadOptions, | 
| 258                                        uploadMedia: _uploadMedia, | 260                                        uploadMedia: _uploadMedia, | 
| 259                                        downloadOptions: _downloadOptions); | 261                                        downloadOptions: _downloadOptions); | 
| 260     return _response.then((data) => new RegionViewsInsertResponse.fromJson(data)
      ); | 262     return _response.then((data) => new RegionViewsInsertResponse.fromJson(data)
      ); | 
| 261   } | 263   } | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 272    * [maxResults] - Maximum count of results to be returned. Acceptable values | 274    * [maxResults] - Maximum count of results to be returned. Acceptable values | 
| 273    * are 0 to 5000, inclusive. (Default: 5000) | 275    * are 0 to 5000, inclusive. (Default: 5000) | 
| 274    * Value must be between "0" and "5000". | 276    * Value must be between "0" and "5000". | 
| 275    * | 277    * | 
| 276    * [pageToken] - Specifies a nextPageToken returned by a previous list | 278    * [pageToken] - Specifies a nextPageToken returned by a previous list | 
| 277    * request. This token can be used to request the next page of results from a | 279    * request. This token can be used to request the next page of results from a | 
| 278    * previous list request. | 280    * previous list request. | 
| 279    * | 281    * | 
| 280    * Completes with a [RegionViewsListResponse]. | 282    * Completes with a [RegionViewsListResponse]. | 
| 281    * | 283    * | 
| 282    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 284    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 283    * error. | 285    * error. | 
| 284    * | 286    * | 
| 285    * If the used [http.Client] completes with an error when making a REST call, | 287    * If the used [http.Client] completes with an error when making a REST call, | 
| 286    * this method  will complete with the same error. | 288    * this method  will complete with the same error. | 
| 287    */ | 289    */ | 
| 288   async.Future<RegionViewsListResponse> list(core.String projectName, core.Strin
      g region, {core.int maxResults, core.String pageToken}) { | 290   async.Future<RegionViewsListResponse> list(core.String projectName, core.Strin
      g region, {core.int maxResults, core.String pageToken}) { | 
| 289     var _url = null; | 291     var _url = null; | 
| 290     var _queryParams = new core.Map(); | 292     var _queryParams = new core.Map(); | 
| 291     var _uploadMedia = null; | 293     var _uploadMedia = null; | 
| 292     var _uploadOptions = null; | 294     var _uploadOptions = null; | 
| 293     var _downloadOptions = common.DownloadOptions.Metadata; | 295     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 294     var _body = null; | 296     var _body = null; | 
| 295 | 297 | 
| 296     if (projectName == null) { | 298     if (projectName == null) { | 
| 297       throw new core.ArgumentError("Parameter projectName is required."); | 299       throw new core.ArgumentError("Parameter projectName is required."); | 
| 298     } | 300     } | 
| 299     if (region == null) { | 301     if (region == null) { | 
| 300       throw new core.ArgumentError("Parameter region is required."); | 302       throw new core.ArgumentError("Parameter region is required."); | 
| 301     } | 303     } | 
| 302     if (maxResults != null) { | 304     if (maxResults != null) { | 
| 303       _queryParams["maxResults"] = ["${maxResults}"]; | 305       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 304     } | 306     } | 
| 305     if (pageToken != null) { | 307     if (pageToken != null) { | 
| 306       _queryParams["pageToken"] = [pageToken]; | 308       _queryParams["pageToken"] = [pageToken]; | 
| 307     } | 309     } | 
| 308 | 310 | 
| 309 | 311 | 
| 310     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews'; | 312     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews'; | 
| 311 | 313 | 
| 312     var _response = _requester.request(_url, | 314     var _response = _requester.request(_url, | 
| 313                                        "GET", | 315                                        "GET", | 
| 314                                        body: _body, | 316                                        body: _body, | 
| 315                                        queryParams: _queryParams, | 317                                        queryParams: _queryParams, | 
| 316                                        uploadOptions: _uploadOptions, | 318                                        uploadOptions: _uploadOptions, | 
| 317                                        uploadMedia: _uploadMedia, | 319                                        uploadMedia: _uploadMedia, | 
| 318                                        downloadOptions: _downloadOptions); | 320                                        downloadOptions: _downloadOptions); | 
| 319     return _response.then((data) => new RegionViewsListResponse.fromJson(data)); | 321     return _response.then((data) => new RegionViewsListResponse.fromJson(data)); | 
| 320   } | 322   } | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 333    * [maxResults] - Maximum count of results to be returned. Acceptable values | 335    * [maxResults] - Maximum count of results to be returned. Acceptable values | 
| 334    * are 0 to 5000, inclusive. (Default: 5000) | 336    * are 0 to 5000, inclusive. (Default: 5000) | 
| 335    * Value must be between "0" and "5000". | 337    * Value must be between "0" and "5000". | 
| 336    * | 338    * | 
| 337    * [pageToken] - Specifies a nextPageToken returned by a previous list | 339    * [pageToken] - Specifies a nextPageToken returned by a previous list | 
| 338    * request. This token can be used to request the next page of results from a | 340    * request. This token can be used to request the next page of results from a | 
| 339    * previous list request. | 341    * previous list request. | 
| 340    * | 342    * | 
| 341    * Completes with a [RegionViewsListResourcesResponse]. | 343    * Completes with a [RegionViewsListResourcesResponse]. | 
| 342    * | 344    * | 
| 343    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 345    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 344    * error. | 346    * error. | 
| 345    * | 347    * | 
| 346    * If the used [http.Client] completes with an error when making a REST call, | 348    * If the used [http.Client] completes with an error when making a REST call, | 
| 347    * this method  will complete with the same error. | 349    * this method  will complete with the same error. | 
| 348    */ | 350    */ | 
| 349   async.Future<RegionViewsListResourcesResponse> listresources(core.String proje
      ctName, core.String region, core.String resourceViewName, {core.int maxResults, 
      core.String pageToken}) { | 351   async.Future<RegionViewsListResourcesResponse> listresources(core.String proje
      ctName, core.String region, core.String resourceViewName, {core.int maxResults, 
      core.String pageToken}) { | 
| 350     var _url = null; | 352     var _url = null; | 
| 351     var _queryParams = new core.Map(); | 353     var _queryParams = new core.Map(); | 
| 352     var _uploadMedia = null; | 354     var _uploadMedia = null; | 
| 353     var _uploadOptions = null; | 355     var _uploadOptions = null; | 
| 354     var _downloadOptions = common.DownloadOptions.Metadata; | 356     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 355     var _body = null; | 357     var _body = null; | 
| 356 | 358 | 
| 357     if (projectName == null) { | 359     if (projectName == null) { | 
| 358       throw new core.ArgumentError("Parameter projectName is required."); | 360       throw new core.ArgumentError("Parameter projectName is required."); | 
| 359     } | 361     } | 
| 360     if (region == null) { | 362     if (region == null) { | 
| 361       throw new core.ArgumentError("Parameter region is required."); | 363       throw new core.ArgumentError("Parameter region is required."); | 
| 362     } | 364     } | 
| 363     if (resourceViewName == null) { | 365     if (resourceViewName == null) { | 
| 364       throw new core.ArgumentError("Parameter resourceViewName is required."); | 366       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 365     } | 367     } | 
| 366     if (maxResults != null) { | 368     if (maxResults != null) { | 
| 367       _queryParams["maxResults"] = ["${maxResults}"]; | 369       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 368     } | 370     } | 
| 369     if (pageToken != null) { | 371     if (pageToken != null) { | 
| 370       _queryParams["pageToken"] = [pageToken]; | 372       _queryParams["pageToken"] = [pageToken]; | 
| 371     } | 373     } | 
| 372 | 374 | 
| 373 | 375 | 
| 374     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews/' + common_i
      nternal.Escaper.ecapeVariable('$resourceViewName') + '/resources'; | 376     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews/' + commons.Escaper.ecapeVar
      iable('$resourceViewName') + '/resources'; | 
| 375 | 377 | 
| 376     var _response = _requester.request(_url, | 378     var _response = _requester.request(_url, | 
| 377                                        "POST", | 379                                        "POST", | 
| 378                                        body: _body, | 380                                        body: _body, | 
| 379                                        queryParams: _queryParams, | 381                                        queryParams: _queryParams, | 
| 380                                        uploadOptions: _uploadOptions, | 382                                        uploadOptions: _uploadOptions, | 
| 381                                        uploadMedia: _uploadMedia, | 383                                        uploadMedia: _uploadMedia, | 
| 382                                        downloadOptions: _downloadOptions); | 384                                        downloadOptions: _downloadOptions); | 
| 383     return _response.then((data) => new RegionViewsListResourcesResponse.fromJso
      n(data)); | 385     return _response.then((data) => new RegionViewsListResourcesResponse.fromJso
      n(data)); | 
| 384   } | 386   } | 
| 385 | 387 | 
| 386   /** | 388   /** | 
| 387    * Remove resources from the view. | 389    * Remove resources from the view. | 
| 388    * | 390    * | 
| 389    * [request] - The metadata request object. | 391    * [request] - The metadata request object. | 
| 390    * | 392    * | 
| 391    * Request parameters: | 393    * Request parameters: | 
| 392    * | 394    * | 
| 393    * [projectName] - The project name of the resource view. | 395    * [projectName] - The project name of the resource view. | 
| 394    * | 396    * | 
| 395    * [region] - The region name of the resource view. | 397    * [region] - The region name of the resource view. | 
| 396    * | 398    * | 
| 397    * [resourceViewName] - The name of the resource view. | 399    * [resourceViewName] - The name of the resource view. | 
| 398    * | 400    * | 
| 399    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 401    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 400    * error. | 402    * error. | 
| 401    * | 403    * | 
| 402    * If the used [http.Client] completes with an error when making a REST call, | 404    * If the used [http.Client] completes with an error when making a REST call, | 
| 403    * this method  will complete with the same error. | 405    * this method  will complete with the same error. | 
| 404    */ | 406    */ | 
| 405   async.Future removeresources(RegionViewsRemoveResourcesRequest request, core.S
      tring projectName, core.String region, core.String resourceViewName) { | 407   async.Future removeresources(RegionViewsRemoveResourcesRequest request, core.S
      tring projectName, core.String region, core.String resourceViewName) { | 
| 406     var _url = null; | 408     var _url = null; | 
| 407     var _queryParams = new core.Map(); | 409     var _queryParams = new core.Map(); | 
| 408     var _uploadMedia = null; | 410     var _uploadMedia = null; | 
| 409     var _uploadOptions = null; | 411     var _uploadOptions = null; | 
| 410     var _downloadOptions = common.DownloadOptions.Metadata; | 412     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 411     var _body = null; | 413     var _body = null; | 
| 412 | 414 | 
| 413     if (request != null) { | 415     if (request != null) { | 
| 414       _body = convert.JSON.encode((request).toJson()); | 416       _body = convert.JSON.encode((request).toJson()); | 
| 415     } | 417     } | 
| 416     if (projectName == null) { | 418     if (projectName == null) { | 
| 417       throw new core.ArgumentError("Parameter projectName is required."); | 419       throw new core.ArgumentError("Parameter projectName is required."); | 
| 418     } | 420     } | 
| 419     if (region == null) { | 421     if (region == null) { | 
| 420       throw new core.ArgumentError("Parameter region is required."); | 422       throw new core.ArgumentError("Parameter region is required."); | 
| 421     } | 423     } | 
| 422     if (resourceViewName == null) { | 424     if (resourceViewName == null) { | 
| 423       throw new core.ArgumentError("Parameter resourceViewName is required."); | 425       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 424     } | 426     } | 
| 425 | 427 | 
| 426     _downloadOptions = null; | 428     _downloadOptions = null; | 
| 427 | 429 | 
| 428     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/regions/' +
       common_internal.Escaper.ecapeVariable('$region') + '/resourceViews/' + common_i
      nternal.Escaper.ecapeVariable('$resourceViewName') + '/removeResources'; | 430     _url = commons.Escaper.ecapeVariable('$projectName') + '/regions/' + commons
      .Escaper.ecapeVariable('$region') + '/resourceViews/' + commons.Escaper.ecapeVar
      iable('$resourceViewName') + '/removeResources'; | 
| 429 | 431 | 
| 430     var _response = _requester.request(_url, | 432     var _response = _requester.request(_url, | 
| 431                                        "POST", | 433                                        "POST", | 
| 432                                        body: _body, | 434                                        body: _body, | 
| 433                                        queryParams: _queryParams, | 435                                        queryParams: _queryParams, | 
| 434                                        uploadOptions: _uploadOptions, | 436                                        uploadOptions: _uploadOptions, | 
| 435                                        uploadMedia: _uploadMedia, | 437                                        uploadMedia: _uploadMedia, | 
| 436                                        downloadOptions: _downloadOptions); | 438                                        downloadOptions: _downloadOptions); | 
| 437     return _response.then((data) => null); | 439     return _response.then((data) => null); | 
| 438   } | 440   } | 
| 439 | 441 | 
| 440 } | 442 } | 
| 441 | 443 | 
| 442 | 444 | 
| 443 /** Not documented yet. */ |  | 
| 444 class ZoneViewsResourceApi { | 445 class ZoneViewsResourceApi { | 
| 445   final common_internal.ApiRequester _requester; | 446   final commons.ApiRequester _requester; | 
| 446 | 447 | 
| 447   ZoneViewsResourceApi(common_internal.ApiRequester client) : | 448   ZoneViewsResourceApi(commons.ApiRequester client) : | 
| 448       _requester = client; | 449       _requester = client; | 
| 449 | 450 | 
| 450   /** | 451   /** | 
| 451    * Add resources to the view. | 452    * Add resources to the view. | 
| 452    * | 453    * | 
| 453    * [request] - The metadata request object. | 454    * [request] - The metadata request object. | 
| 454    * | 455    * | 
| 455    * Request parameters: | 456    * Request parameters: | 
| 456    * | 457    * | 
| 457    * [projectName] - The project name of the resource view. | 458    * [projectName] - The project name of the resource view. | 
| 458    * | 459    * | 
| 459    * [zone] - The zone name of the resource view. | 460    * [zone] - The zone name of the resource view. | 
| 460    * | 461    * | 
| 461    * [resourceViewName] - The name of the resource view. | 462    * [resourceViewName] - The name of the resource view. | 
| 462    * | 463    * | 
| 463    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 464    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 464    * error. | 465    * error. | 
| 465    * | 466    * | 
| 466    * If the used [http.Client] completes with an error when making a REST call, | 467    * If the used [http.Client] completes with an error when making a REST call, | 
| 467    * this method  will complete with the same error. | 468    * this method  will complete with the same error. | 
| 468    */ | 469    */ | 
| 469   async.Future addresources(ZoneViewsAddResourcesRequest request, core.String pr
      ojectName, core.String zone, core.String resourceViewName) { | 470   async.Future addresources(ZoneViewsAddResourcesRequest request, core.String pr
      ojectName, core.String zone, core.String resourceViewName) { | 
| 470     var _url = null; | 471     var _url = null; | 
| 471     var _queryParams = new core.Map(); | 472     var _queryParams = new core.Map(); | 
| 472     var _uploadMedia = null; | 473     var _uploadMedia = null; | 
| 473     var _uploadOptions = null; | 474     var _uploadOptions = null; | 
| 474     var _downloadOptions = common.DownloadOptions.Metadata; | 475     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 475     var _body = null; | 476     var _body = null; | 
| 476 | 477 | 
| 477     if (request != null) { | 478     if (request != null) { | 
| 478       _body = convert.JSON.encode((request).toJson()); | 479       _body = convert.JSON.encode((request).toJson()); | 
| 479     } | 480     } | 
| 480     if (projectName == null) { | 481     if (projectName == null) { | 
| 481       throw new core.ArgumentError("Parameter projectName is required."); | 482       throw new core.ArgumentError("Parameter projectName is required."); | 
| 482     } | 483     } | 
| 483     if (zone == null) { | 484     if (zone == null) { | 
| 484       throw new core.ArgumentError("Parameter zone is required."); | 485       throw new core.ArgumentError("Parameter zone is required."); | 
| 485     } | 486     } | 
| 486     if (resourceViewName == null) { | 487     if (resourceViewName == null) { | 
| 487       throw new core.ArgumentError("Parameter resourceViewName is required."); | 488       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 488     } | 489     } | 
| 489 | 490 | 
| 490     _downloadOptions = null; | 491     _downloadOptions = null; | 
| 491 | 492 | 
| 492     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_inter
      nal.Escaper.ecapeVariable('$resourceViewName') + '/addResources'; | 493     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariabl
      e('$resourceViewName') + '/addResources'; | 
| 493 | 494 | 
| 494     var _response = _requester.request(_url, | 495     var _response = _requester.request(_url, | 
| 495                                        "POST", | 496                                        "POST", | 
| 496                                        body: _body, | 497                                        body: _body, | 
| 497                                        queryParams: _queryParams, | 498                                        queryParams: _queryParams, | 
| 498                                        uploadOptions: _uploadOptions, | 499                                        uploadOptions: _uploadOptions, | 
| 499                                        uploadMedia: _uploadMedia, | 500                                        uploadMedia: _uploadMedia, | 
| 500                                        downloadOptions: _downloadOptions); | 501                                        downloadOptions: _downloadOptions); | 
| 501     return _response.then((data) => null); | 502     return _response.then((data) => null); | 
| 502   } | 503   } | 
| 503 | 504 | 
| 504   /** | 505   /** | 
| 505    * Delete a resource view. | 506    * Delete a resource view. | 
| 506    * | 507    * | 
| 507    * Request parameters: | 508    * Request parameters: | 
| 508    * | 509    * | 
| 509    * [projectName] - The project name of the resource view. | 510    * [projectName] - The project name of the resource view. | 
| 510    * | 511    * | 
| 511    * [zone] - The zone name of the resource view. | 512    * [zone] - The zone name of the resource view. | 
| 512    * | 513    * | 
| 513    * [resourceViewName] - The name of the resource view. | 514    * [resourceViewName] - The name of the resource view. | 
| 514    * | 515    * | 
| 515    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 516    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 516    * error. | 517    * error. | 
| 517    * | 518    * | 
| 518    * If the used [http.Client] completes with an error when making a REST call, | 519    * If the used [http.Client] completes with an error when making a REST call, | 
| 519    * this method  will complete with the same error. | 520    * this method  will complete with the same error. | 
| 520    */ | 521    */ | 
| 521   async.Future delete(core.String projectName, core.String zone, core.String res
      ourceViewName) { | 522   async.Future delete(core.String projectName, core.String zone, core.String res
      ourceViewName) { | 
| 522     var _url = null; | 523     var _url = null; | 
| 523     var _queryParams = new core.Map(); | 524     var _queryParams = new core.Map(); | 
| 524     var _uploadMedia = null; | 525     var _uploadMedia = null; | 
| 525     var _uploadOptions = null; | 526     var _uploadOptions = null; | 
| 526     var _downloadOptions = common.DownloadOptions.Metadata; | 527     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 527     var _body = null; | 528     var _body = null; | 
| 528 | 529 | 
| 529     if (projectName == null) { | 530     if (projectName == null) { | 
| 530       throw new core.ArgumentError("Parameter projectName is required."); | 531       throw new core.ArgumentError("Parameter projectName is required."); | 
| 531     } | 532     } | 
| 532     if (zone == null) { | 533     if (zone == null) { | 
| 533       throw new core.ArgumentError("Parameter zone is required."); | 534       throw new core.ArgumentError("Parameter zone is required."); | 
| 534     } | 535     } | 
| 535     if (resourceViewName == null) { | 536     if (resourceViewName == null) { | 
| 536       throw new core.ArgumentError("Parameter resourceViewName is required."); | 537       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 537     } | 538     } | 
| 538 | 539 | 
| 539     _downloadOptions = null; | 540     _downloadOptions = null; | 
| 540 | 541 | 
| 541     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_inter
      nal.Escaper.ecapeVariable('$resourceViewName'); | 542     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariabl
      e('$resourceViewName'); | 
| 542 | 543 | 
| 543     var _response = _requester.request(_url, | 544     var _response = _requester.request(_url, | 
| 544                                        "DELETE", | 545                                        "DELETE", | 
| 545                                        body: _body, | 546                                        body: _body, | 
| 546                                        queryParams: _queryParams, | 547                                        queryParams: _queryParams, | 
| 547                                        uploadOptions: _uploadOptions, | 548                                        uploadOptions: _uploadOptions, | 
| 548                                        uploadMedia: _uploadMedia, | 549                                        uploadMedia: _uploadMedia, | 
| 549                                        downloadOptions: _downloadOptions); | 550                                        downloadOptions: _downloadOptions); | 
| 550     return _response.then((data) => null); | 551     return _response.then((data) => null); | 
| 551   } | 552   } | 
| 552 | 553 | 
| 553   /** | 554   /** | 
| 554    * Get the information of a zonal resource view. | 555    * Get the information of a zonal resource view. | 
| 555    * | 556    * | 
| 556    * Request parameters: | 557    * Request parameters: | 
| 557    * | 558    * | 
| 558    * [projectName] - The project name of the resource view. | 559    * [projectName] - The project name of the resource view. | 
| 559    * | 560    * | 
| 560    * [zone] - The zone name of the resource view. | 561    * [zone] - The zone name of the resource view. | 
| 561    * | 562    * | 
| 562    * [resourceViewName] - The name of the resource view. | 563    * [resourceViewName] - The name of the resource view. | 
| 563    * | 564    * | 
| 564    * Completes with a [ResourceView]. | 565    * Completes with a [ResourceView]. | 
| 565    * | 566    * | 
| 566    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 567    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 567    * error. | 568    * error. | 
| 568    * | 569    * | 
| 569    * If the used [http.Client] completes with an error when making a REST call, | 570    * If the used [http.Client] completes with an error when making a REST call, | 
| 570    * this method  will complete with the same error. | 571    * this method  will complete with the same error. | 
| 571    */ | 572    */ | 
| 572   async.Future<ResourceView> get(core.String projectName, core.String zone, core
      .String resourceViewName) { | 573   async.Future<ResourceView> get(core.String projectName, core.String zone, core
      .String resourceViewName) { | 
| 573     var _url = null; | 574     var _url = null; | 
| 574     var _queryParams = new core.Map(); | 575     var _queryParams = new core.Map(); | 
| 575     var _uploadMedia = null; | 576     var _uploadMedia = null; | 
| 576     var _uploadOptions = null; | 577     var _uploadOptions = null; | 
| 577     var _downloadOptions = common.DownloadOptions.Metadata; | 578     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 578     var _body = null; | 579     var _body = null; | 
| 579 | 580 | 
| 580     if (projectName == null) { | 581     if (projectName == null) { | 
| 581       throw new core.ArgumentError("Parameter projectName is required."); | 582       throw new core.ArgumentError("Parameter projectName is required."); | 
| 582     } | 583     } | 
| 583     if (zone == null) { | 584     if (zone == null) { | 
| 584       throw new core.ArgumentError("Parameter zone is required."); | 585       throw new core.ArgumentError("Parameter zone is required."); | 
| 585     } | 586     } | 
| 586     if (resourceViewName == null) { | 587     if (resourceViewName == null) { | 
| 587       throw new core.ArgumentError("Parameter resourceViewName is required."); | 588       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 588     } | 589     } | 
| 589 | 590 | 
| 590 | 591 | 
| 591     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_inter
      nal.Escaper.ecapeVariable('$resourceViewName'); | 592     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariabl
      e('$resourceViewName'); | 
| 592 | 593 | 
| 593     var _response = _requester.request(_url, | 594     var _response = _requester.request(_url, | 
| 594                                        "GET", | 595                                        "GET", | 
| 595                                        body: _body, | 596                                        body: _body, | 
| 596                                        queryParams: _queryParams, | 597                                        queryParams: _queryParams, | 
| 597                                        uploadOptions: _uploadOptions, | 598                                        uploadOptions: _uploadOptions, | 
| 598                                        uploadMedia: _uploadMedia, | 599                                        uploadMedia: _uploadMedia, | 
| 599                                        downloadOptions: _downloadOptions); | 600                                        downloadOptions: _downloadOptions); | 
| 600     return _response.then((data) => new ResourceView.fromJson(data)); | 601     return _response.then((data) => new ResourceView.fromJson(data)); | 
| 601   } | 602   } | 
| 602 | 603 | 
| 603   /** | 604   /** | 
| 604    * Create a resource view. | 605    * Create a resource view. | 
| 605    * | 606    * | 
| 606    * [request] - The metadata request object. | 607    * [request] - The metadata request object. | 
| 607    * | 608    * | 
| 608    * Request parameters: | 609    * Request parameters: | 
| 609    * | 610    * | 
| 610    * [projectName] - The project name of the resource view. | 611    * [projectName] - The project name of the resource view. | 
| 611    * | 612    * | 
| 612    * [zone] - The zone name of the resource view. | 613    * [zone] - The zone name of the resource view. | 
| 613    * | 614    * | 
| 614    * Completes with a [ZoneViewsInsertResponse]. | 615    * Completes with a [ZoneViewsInsertResponse]. | 
| 615    * | 616    * | 
| 616    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 617    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 617    * error. | 618    * error. | 
| 618    * | 619    * | 
| 619    * If the used [http.Client] completes with an error when making a REST call, | 620    * If the used [http.Client] completes with an error when making a REST call, | 
| 620    * this method  will complete with the same error. | 621    * this method  will complete with the same error. | 
| 621    */ | 622    */ | 
| 622   async.Future<ZoneViewsInsertResponse> insert(ResourceView request, core.String
       projectName, core.String zone) { | 623   async.Future<ZoneViewsInsertResponse> insert(ResourceView request, core.String
       projectName, core.String zone) { | 
| 623     var _url = null; | 624     var _url = null; | 
| 624     var _queryParams = new core.Map(); | 625     var _queryParams = new core.Map(); | 
| 625     var _uploadMedia = null; | 626     var _uploadMedia = null; | 
| 626     var _uploadOptions = null; | 627     var _uploadOptions = null; | 
| 627     var _downloadOptions = common.DownloadOptions.Metadata; | 628     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 628     var _body = null; | 629     var _body = null; | 
| 629 | 630 | 
| 630     if (request != null) { | 631     if (request != null) { | 
| 631       _body = convert.JSON.encode((request).toJson()); | 632       _body = convert.JSON.encode((request).toJson()); | 
| 632     } | 633     } | 
| 633     if (projectName == null) { | 634     if (projectName == null) { | 
| 634       throw new core.ArgumentError("Parameter projectName is required."); | 635       throw new core.ArgumentError("Parameter projectName is required."); | 
| 635     } | 636     } | 
| 636     if (zone == null) { | 637     if (zone == null) { | 
| 637       throw new core.ArgumentError("Parameter zone is required."); | 638       throw new core.ArgumentError("Parameter zone is required."); | 
| 638     } | 639     } | 
| 639 | 640 | 
| 640 | 641 | 
| 641     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews'; | 642     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews'; | 
| 642 | 643 | 
| 643     var _response = _requester.request(_url, | 644     var _response = _requester.request(_url, | 
| 644                                        "POST", | 645                                        "POST", | 
| 645                                        body: _body, | 646                                        body: _body, | 
| 646                                        queryParams: _queryParams, | 647                                        queryParams: _queryParams, | 
| 647                                        uploadOptions: _uploadOptions, | 648                                        uploadOptions: _uploadOptions, | 
| 648                                        uploadMedia: _uploadMedia, | 649                                        uploadMedia: _uploadMedia, | 
| 649                                        downloadOptions: _downloadOptions); | 650                                        downloadOptions: _downloadOptions); | 
| 650     return _response.then((data) => new ZoneViewsInsertResponse.fromJson(data)); | 651     return _response.then((data) => new ZoneViewsInsertResponse.fromJson(data)); | 
| 651   } | 652   } | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 662    * [maxResults] - Maximum count of results to be returned. Acceptable values | 663    * [maxResults] - Maximum count of results to be returned. Acceptable values | 
| 663    * are 0 to 5000, inclusive. (Default: 5000) | 664    * are 0 to 5000, inclusive. (Default: 5000) | 
| 664    * Value must be between "0" and "5000". | 665    * Value must be between "0" and "5000". | 
| 665    * | 666    * | 
| 666    * [pageToken] - Specifies a nextPageToken returned by a previous list | 667    * [pageToken] - Specifies a nextPageToken returned by a previous list | 
| 667    * request. This token can be used to request the next page of results from a | 668    * request. This token can be used to request the next page of results from a | 
| 668    * previous list request. | 669    * previous list request. | 
| 669    * | 670    * | 
| 670    * Completes with a [ZoneViewsListResponse]. | 671    * Completes with a [ZoneViewsListResponse]. | 
| 671    * | 672    * | 
| 672    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 673    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 673    * error. | 674    * error. | 
| 674    * | 675    * | 
| 675    * If the used [http.Client] completes with an error when making a REST call, | 676    * If the used [http.Client] completes with an error when making a REST call, | 
| 676    * this method  will complete with the same error. | 677    * this method  will complete with the same error. | 
| 677    */ | 678    */ | 
| 678   async.Future<ZoneViewsListResponse> list(core.String projectName, core.String 
      zone, {core.int maxResults, core.String pageToken}) { | 679   async.Future<ZoneViewsListResponse> list(core.String projectName, core.String 
      zone, {core.int maxResults, core.String pageToken}) { | 
| 679     var _url = null; | 680     var _url = null; | 
| 680     var _queryParams = new core.Map(); | 681     var _queryParams = new core.Map(); | 
| 681     var _uploadMedia = null; | 682     var _uploadMedia = null; | 
| 682     var _uploadOptions = null; | 683     var _uploadOptions = null; | 
| 683     var _downloadOptions = common.DownloadOptions.Metadata; | 684     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 684     var _body = null; | 685     var _body = null; | 
| 685 | 686 | 
| 686     if (projectName == null) { | 687     if (projectName == null) { | 
| 687       throw new core.ArgumentError("Parameter projectName is required."); | 688       throw new core.ArgumentError("Parameter projectName is required."); | 
| 688     } | 689     } | 
| 689     if (zone == null) { | 690     if (zone == null) { | 
| 690       throw new core.ArgumentError("Parameter zone is required."); | 691       throw new core.ArgumentError("Parameter zone is required."); | 
| 691     } | 692     } | 
| 692     if (maxResults != null) { | 693     if (maxResults != null) { | 
| 693       _queryParams["maxResults"] = ["${maxResults}"]; | 694       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 694     } | 695     } | 
| 695     if (pageToken != null) { | 696     if (pageToken != null) { | 
| 696       _queryParams["pageToken"] = [pageToken]; | 697       _queryParams["pageToken"] = [pageToken]; | 
| 697     } | 698     } | 
| 698 | 699 | 
| 699 | 700 | 
| 700     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews'; | 701     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews'; | 
| 701 | 702 | 
| 702     var _response = _requester.request(_url, | 703     var _response = _requester.request(_url, | 
| 703                                        "GET", | 704                                        "GET", | 
| 704                                        body: _body, | 705                                        body: _body, | 
| 705                                        queryParams: _queryParams, | 706                                        queryParams: _queryParams, | 
| 706                                        uploadOptions: _uploadOptions, | 707                                        uploadOptions: _uploadOptions, | 
| 707                                        uploadMedia: _uploadMedia, | 708                                        uploadMedia: _uploadMedia, | 
| 708                                        downloadOptions: _downloadOptions); | 709                                        downloadOptions: _downloadOptions); | 
| 709     return _response.then((data) => new ZoneViewsListResponse.fromJson(data)); | 710     return _response.then((data) => new ZoneViewsListResponse.fromJson(data)); | 
| 710   } | 711   } | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 723    * [maxResults] - Maximum count of results to be returned. Acceptable values | 724    * [maxResults] - Maximum count of results to be returned. Acceptable values | 
| 724    * are 0 to 5000, inclusive. (Default: 5000) | 725    * are 0 to 5000, inclusive. (Default: 5000) | 
| 725    * Value must be between "0" and "5000". | 726    * Value must be between "0" and "5000". | 
| 726    * | 727    * | 
| 727    * [pageToken] - Specifies a nextPageToken returned by a previous list | 728    * [pageToken] - Specifies a nextPageToken returned by a previous list | 
| 728    * request. This token can be used to request the next page of results from a | 729    * request. This token can be used to request the next page of results from a | 
| 729    * previous list request. | 730    * previous list request. | 
| 730    * | 731    * | 
| 731    * Completes with a [ZoneViewsListResourcesResponse]. | 732    * Completes with a [ZoneViewsListResourcesResponse]. | 
| 732    * | 733    * | 
| 733    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 734    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 734    * error. | 735    * error. | 
| 735    * | 736    * | 
| 736    * If the used [http.Client] completes with an error when making a REST call, | 737    * If the used [http.Client] completes with an error when making a REST call, | 
| 737    * this method  will complete with the same error. | 738    * this method  will complete with the same error. | 
| 738    */ | 739    */ | 
| 739   async.Future<ZoneViewsListResourcesResponse> listresources(core.String project
      Name, core.String zone, core.String resourceViewName, {core.int maxResults, core
      .String pageToken}) { | 740   async.Future<ZoneViewsListResourcesResponse> listresources(core.String project
      Name, core.String zone, core.String resourceViewName, {core.int maxResults, core
      .String pageToken}) { | 
| 740     var _url = null; | 741     var _url = null; | 
| 741     var _queryParams = new core.Map(); | 742     var _queryParams = new core.Map(); | 
| 742     var _uploadMedia = null; | 743     var _uploadMedia = null; | 
| 743     var _uploadOptions = null; | 744     var _uploadOptions = null; | 
| 744     var _downloadOptions = common.DownloadOptions.Metadata; | 745     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 745     var _body = null; | 746     var _body = null; | 
| 746 | 747 | 
| 747     if (projectName == null) { | 748     if (projectName == null) { | 
| 748       throw new core.ArgumentError("Parameter projectName is required."); | 749       throw new core.ArgumentError("Parameter projectName is required."); | 
| 749     } | 750     } | 
| 750     if (zone == null) { | 751     if (zone == null) { | 
| 751       throw new core.ArgumentError("Parameter zone is required."); | 752       throw new core.ArgumentError("Parameter zone is required."); | 
| 752     } | 753     } | 
| 753     if (resourceViewName == null) { | 754     if (resourceViewName == null) { | 
| 754       throw new core.ArgumentError("Parameter resourceViewName is required."); | 755       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 755     } | 756     } | 
| 756     if (maxResults != null) { | 757     if (maxResults != null) { | 
| 757       _queryParams["maxResults"] = ["${maxResults}"]; | 758       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 758     } | 759     } | 
| 759     if (pageToken != null) { | 760     if (pageToken != null) { | 
| 760       _queryParams["pageToken"] = [pageToken]; | 761       _queryParams["pageToken"] = [pageToken]; | 
| 761     } | 762     } | 
| 762 | 763 | 
| 763 | 764 | 
| 764     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_inter
      nal.Escaper.ecapeVariable('$resourceViewName') + '/resources'; | 765     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariabl
      e('$resourceViewName') + '/resources'; | 
| 765 | 766 | 
| 766     var _response = _requester.request(_url, | 767     var _response = _requester.request(_url, | 
| 767                                        "POST", | 768                                        "POST", | 
| 768                                        body: _body, | 769                                        body: _body, | 
| 769                                        queryParams: _queryParams, | 770                                        queryParams: _queryParams, | 
| 770                                        uploadOptions: _uploadOptions, | 771                                        uploadOptions: _uploadOptions, | 
| 771                                        uploadMedia: _uploadMedia, | 772                                        uploadMedia: _uploadMedia, | 
| 772                                        downloadOptions: _downloadOptions); | 773                                        downloadOptions: _downloadOptions); | 
| 773     return _response.then((data) => new ZoneViewsListResourcesResponse.fromJson(
      data)); | 774     return _response.then((data) => new ZoneViewsListResourcesResponse.fromJson(
      data)); | 
| 774   } | 775   } | 
| 775 | 776 | 
| 776   /** | 777   /** | 
| 777    * Remove resources from the view. | 778    * Remove resources from the view. | 
| 778    * | 779    * | 
| 779    * [request] - The metadata request object. | 780    * [request] - The metadata request object. | 
| 780    * | 781    * | 
| 781    * Request parameters: | 782    * Request parameters: | 
| 782    * | 783    * | 
| 783    * [projectName] - The project name of the resource view. | 784    * [projectName] - The project name of the resource view. | 
| 784    * | 785    * | 
| 785    * [zone] - The zone name of the resource view. | 786    * [zone] - The zone name of the resource view. | 
| 786    * | 787    * | 
| 787    * [resourceViewName] - The name of the resource view. | 788    * [resourceViewName] - The name of the resource view. | 
| 788    * | 789    * | 
| 789    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 790    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 790    * error. | 791    * error. | 
| 791    * | 792    * | 
| 792    * If the used [http.Client] completes with an error when making a REST call, | 793    * If the used [http.Client] completes with an error when making a REST call, | 
| 793    * this method  will complete with the same error. | 794    * this method  will complete with the same error. | 
| 794    */ | 795    */ | 
| 795   async.Future removeresources(ZoneViewsRemoveResourcesRequest request, core.Str
      ing projectName, core.String zone, core.String resourceViewName) { | 796   async.Future removeresources(ZoneViewsRemoveResourcesRequest request, core.Str
      ing projectName, core.String zone, core.String resourceViewName) { | 
| 796     var _url = null; | 797     var _url = null; | 
| 797     var _queryParams = new core.Map(); | 798     var _queryParams = new core.Map(); | 
| 798     var _uploadMedia = null; | 799     var _uploadMedia = null; | 
| 799     var _uploadOptions = null; | 800     var _uploadOptions = null; | 
| 800     var _downloadOptions = common.DownloadOptions.Metadata; | 801     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 801     var _body = null; | 802     var _body = null; | 
| 802 | 803 | 
| 803     if (request != null) { | 804     if (request != null) { | 
| 804       _body = convert.JSON.encode((request).toJson()); | 805       _body = convert.JSON.encode((request).toJson()); | 
| 805     } | 806     } | 
| 806     if (projectName == null) { | 807     if (projectName == null) { | 
| 807       throw new core.ArgumentError("Parameter projectName is required."); | 808       throw new core.ArgumentError("Parameter projectName is required."); | 
| 808     } | 809     } | 
| 809     if (zone == null) { | 810     if (zone == null) { | 
| 810       throw new core.ArgumentError("Parameter zone is required."); | 811       throw new core.ArgumentError("Parameter zone is required."); | 
| 811     } | 812     } | 
| 812     if (resourceViewName == null) { | 813     if (resourceViewName == null) { | 
| 813       throw new core.ArgumentError("Parameter resourceViewName is required."); | 814       throw new core.ArgumentError("Parameter resourceViewName is required."); | 
| 814     } | 815     } | 
| 815 | 816 | 
| 816     _downloadOptions = null; | 817     _downloadOptions = null; | 
| 817 | 818 | 
| 818     _url = common_internal.Escaper.ecapeVariable('$projectName') + '/zones/' + c
      ommon_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_inter
      nal.Escaper.ecapeVariable('$resourceViewName') + '/removeResources'; | 819     _url = commons.Escaper.ecapeVariable('$projectName') + '/zones/' + commons.E
      scaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariabl
      e('$resourceViewName') + '/removeResources'; | 
| 819 | 820 | 
| 820     var _response = _requester.request(_url, | 821     var _response = _requester.request(_url, | 
| 821                                        "POST", | 822                                        "POST", | 
| 822                                        body: _body, | 823                                        body: _body, | 
| 823                                        queryParams: _queryParams, | 824                                        queryParams: _queryParams, | 
| 824                                        uploadOptions: _uploadOptions, | 825                                        uploadOptions: _uploadOptions, | 
| 825                                        uploadMedia: _uploadMedia, | 826                                        uploadMedia: _uploadMedia, | 
| 826                                        downloadOptions: _downloadOptions); | 827                                        downloadOptions: _downloadOptions); | 
| 827     return _response.then((data) => null); | 828     return _response.then((data) => null); | 
| 828   } | 829   } | 
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1236   } | 1237   } | 
| 1237 | 1238 | 
| 1238   core.Map toJson() { | 1239   core.Map toJson() { | 
| 1239     var _json = new core.Map(); | 1240     var _json = new core.Map(); | 
| 1240     if (resources != null) { | 1241     if (resources != null) { | 
| 1241       _json["resources"] = resources; | 1242       _json["resources"] = resources; | 
| 1242     } | 1243     } | 
| 1243     return _json; | 1244     return _json; | 
| 1244   } | 1245   } | 
| 1245 } | 1246 } | 
| 1246 |  | 
| 1247 |  | 
| OLD | NEW | 
|---|