| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.servicemanagement.v1; | 3 library googleapis.servicemanagement.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http_1; | 10 import 'package:http/http.dart' as http_1; |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 "POST", | 471 "POST", |
| 472 body: _body, | 472 body: _body, |
| 473 queryParams: _queryParams, | 473 queryParams: _queryParams, |
| 474 uploadOptions: _uploadOptions, | 474 uploadOptions: _uploadOptions, |
| 475 uploadMedia: _uploadMedia, | 475 uploadMedia: _uploadMedia, |
| 476 downloadOptions: _downloadOptions); | 476 downloadOptions: _downloadOptions); |
| 477 return _response.then((data) => new Policy.fromJson(data)); | 477 return _response.then((data) => new Policy.fromJson(data)); |
| 478 } | 478 } |
| 479 | 479 |
| 480 /** | 480 /** |
| 481 * Lists all managed services. The result is limited to services that the | 481 * Lists managed services. |
| 482 * caller has "servicemanagement.services.get" permission for. If the request | 482 * |
| 483 * is made without authentication, it returns only public services that are | 483 * If called without any authentication, it returns only the public services. |
| 484 * available to everyone. | 484 * If called with authentication, it returns all services that the caller has |
| 485 * "servicemanagement.services.get" permission for. |
| 486 * |
| 487 * **BETA:** If the caller specifies the `consumer_id`, it returns only the |
| 488 * services enabled on the consumer. The `consumer_id` must have the format |
| 489 * of "project:{PROJECT-ID}". |
| 485 * | 490 * |
| 486 * Request parameters: | 491 * Request parameters: |
| 487 * | 492 * |
| 488 * [pageSize] - Requested size of the next page of data. | |
| 489 * | |
| 490 * [producerProjectId] - Include services produced by the specified project. | |
| 491 * | |
| 492 * [pageToken] - Token identifying which result to start with; returned by a | |
| 493 * previous list | |
| 494 * call. | |
| 495 * | |
| 496 * [consumerId] - Include services consumed by the specified consumer. | 493 * [consumerId] - Include services consumed by the specified consumer. |
| 497 * | 494 * |
| 498 * The Google Service Management implementation accepts the following | 495 * The Google Service Management implementation accepts the following |
| 499 * forms: | 496 * forms: |
| 500 * - project:<project_id> | 497 * - project:<project_id> |
| 501 * | 498 * |
| 499 * [pageToken] - Token identifying which result to start with; returned by a |
| 500 * previous list |
| 501 * call. |
| 502 * |
| 503 * [pageSize] - Requested size of the next page of data. |
| 504 * |
| 505 * [producerProjectId] - Include services produced by the specified project. |
| 506 * |
| 502 * Completes with a [ListServicesResponse]. | 507 * Completes with a [ListServicesResponse]. |
| 503 * | 508 * |
| 504 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 509 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 505 * error. | 510 * error. |
| 506 * | 511 * |
| 507 * If the used [http_1.Client] completes with an error when making a REST | 512 * If the used [http_1.Client] completes with an error when making a REST |
| 508 * call, this method will complete with the same error. | 513 * call, this method will complete with the same error. |
| 509 */ | 514 */ |
| 510 async.Future<ListServicesResponse> list({core.int pageSize, core.String produc
erProjectId, core.String pageToken, core.String consumerId}) { | 515 async.Future<ListServicesResponse> list({core.String consumerId, core.String p
ageToken, core.int pageSize, core.String producerProjectId}) { |
| 511 var _url = null; | 516 var _url = null; |
| 512 var _queryParams = new core.Map(); | 517 var _queryParams = new core.Map(); |
| 513 var _uploadMedia = null; | 518 var _uploadMedia = null; |
| 514 var _uploadOptions = null; | 519 var _uploadOptions = null; |
| 515 var _downloadOptions = commons.DownloadOptions.Metadata; | 520 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 516 var _body = null; | 521 var _body = null; |
| 517 | 522 |
| 523 if (consumerId != null) { |
| 524 _queryParams["consumerId"] = [consumerId]; |
| 525 } |
| 526 if (pageToken != null) { |
| 527 _queryParams["pageToken"] = [pageToken]; |
| 528 } |
| 518 if (pageSize != null) { | 529 if (pageSize != null) { |
| 519 _queryParams["pageSize"] = ["${pageSize}"]; | 530 _queryParams["pageSize"] = ["${pageSize}"]; |
| 520 } | 531 } |
| 521 if (producerProjectId != null) { | 532 if (producerProjectId != null) { |
| 522 _queryParams["producerProjectId"] = [producerProjectId]; | 533 _queryParams["producerProjectId"] = [producerProjectId]; |
| 523 } | 534 } |
| 524 if (pageToken != null) { | |
| 525 _queryParams["pageToken"] = [pageToken]; | |
| 526 } | |
| 527 if (consumerId != null) { | |
| 528 _queryParams["consumerId"] = [consumerId]; | |
| 529 } | |
| 530 | 535 |
| 531 _url = 'v1/services'; | 536 _url = 'v1/services'; |
| 532 | 537 |
| 533 var _response = _requester.request(_url, | 538 var _response = _requester.request(_url, |
| 534 "GET", | 539 "GET", |
| 535 body: _body, | 540 body: _body, |
| 536 queryParams: _queryParams, | 541 queryParams: _queryParams, |
| 537 uploadOptions: _uploadOptions, | 542 uploadOptions: _uploadOptions, |
| 538 uploadMedia: _uploadMedia, | 543 uploadMedia: _uploadMedia, |
| 539 downloadOptions: _downloadOptions); | 544 downloadOptions: _downloadOptions); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 /** | 797 /** |
| 793 * Lists the history of the service configuration for a managed service, | 798 * Lists the history of the service configuration for a managed service, |
| 794 * from the newest to the oldest. | 799 * from the newest to the oldest. |
| 795 * | 800 * |
| 796 * Request parameters: | 801 * Request parameters: |
| 797 * | 802 * |
| 798 * [serviceName] - The name of the service. See the | 803 * [serviceName] - The name of the service. See the |
| 799 * [overview](/service-management/overview) | 804 * [overview](/service-management/overview) |
| 800 * for naming requirements. For example: `example.googleapis.com`. | 805 * for naming requirements. For example: `example.googleapis.com`. |
| 801 * | 806 * |
| 807 * [pageToken] - The token of the page to retrieve. |
| 808 * |
| 802 * [pageSize] - The max number of items to include in the response list. | 809 * [pageSize] - The max number of items to include in the response list. |
| 803 * | 810 * |
| 804 * [pageToken] - The token of the page to retrieve. | |
| 805 * | |
| 806 * Completes with a [ListServiceConfigsResponse]. | 811 * Completes with a [ListServiceConfigsResponse]. |
| 807 * | 812 * |
| 808 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 813 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 809 * error. | 814 * error. |
| 810 * | 815 * |
| 811 * If the used [http_1.Client] completes with an error when making a REST | 816 * If the used [http_1.Client] completes with an error when making a REST |
| 812 * call, this method will complete with the same error. | 817 * call, this method will complete with the same error. |
| 813 */ | 818 */ |
| 814 async.Future<ListServiceConfigsResponse> list(core.String serviceName, {core.i
nt pageSize, core.String pageToken}) { | 819 async.Future<ListServiceConfigsResponse> list(core.String serviceName, {core.S
tring pageToken, core.int pageSize}) { |
| 815 var _url = null; | 820 var _url = null; |
| 816 var _queryParams = new core.Map(); | 821 var _queryParams = new core.Map(); |
| 817 var _uploadMedia = null; | 822 var _uploadMedia = null; |
| 818 var _uploadOptions = null; | 823 var _uploadOptions = null; |
| 819 var _downloadOptions = commons.DownloadOptions.Metadata; | 824 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 820 var _body = null; | 825 var _body = null; |
| 821 | 826 |
| 822 if (serviceName == null) { | 827 if (serviceName == null) { |
| 823 throw new core.ArgumentError("Parameter serviceName is required."); | 828 throw new core.ArgumentError("Parameter serviceName is required."); |
| 824 } | 829 } |
| 830 if (pageToken != null) { |
| 831 _queryParams["pageToken"] = [pageToken]; |
| 832 } |
| 825 if (pageSize != null) { | 833 if (pageSize != null) { |
| 826 _queryParams["pageSize"] = ["${pageSize}"]; | 834 _queryParams["pageSize"] = ["${pageSize}"]; |
| 827 } | 835 } |
| 828 if (pageToken != null) { | |
| 829 _queryParams["pageToken"] = [pageToken]; | |
| 830 } | |
| 831 | 836 |
| 832 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/co
nfigs'; | 837 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/co
nfigs'; |
| 833 | 838 |
| 834 var _response = _requester.request(_url, | 839 var _response = _requester.request(_url, |
| 835 "GET", | 840 "GET", |
| 836 body: _body, | 841 body: _body, |
| 837 queryParams: _queryParams, | 842 queryParams: _queryParams, |
| 838 uploadOptions: _uploadOptions, | 843 uploadOptions: _uploadOptions, |
| 839 uploadMedia: _uploadMedia, | 844 uploadMedia: _uploadMedia, |
| 840 downloadOptions: _downloadOptions); | 845 downloadOptions: _downloadOptions); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 /** | 1013 /** |
| 1009 * Lists the history of the service configuration rollouts for a managed | 1014 * Lists the history of the service configuration rollouts for a managed |
| 1010 * service, from the newest to the oldest. | 1015 * service, from the newest to the oldest. |
| 1011 * | 1016 * |
| 1012 * Request parameters: | 1017 * Request parameters: |
| 1013 * | 1018 * |
| 1014 * [serviceName] - The name of the service. See the | 1019 * [serviceName] - The name of the service. See the |
| 1015 * [overview](/service-management/overview) | 1020 * [overview](/service-management/overview) |
| 1016 * for naming requirements. For example: `example.googleapis.com`. | 1021 * for naming requirements. For example: `example.googleapis.com`. |
| 1017 * | 1022 * |
| 1023 * [pageToken] - The token of the page to retrieve. |
| 1024 * |
| 1018 * [pageSize] - The max number of items to include in the response list. | 1025 * [pageSize] - The max number of items to include in the response list. |
| 1019 * | 1026 * |
| 1020 * [pageToken] - The token of the page to retrieve. | |
| 1021 * | |
| 1022 * Completes with a [ListServiceRolloutsResponse]. | 1027 * Completes with a [ListServiceRolloutsResponse]. |
| 1023 * | 1028 * |
| 1024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1029 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1025 * error. | 1030 * error. |
| 1026 * | 1031 * |
| 1027 * If the used [http_1.Client] completes with an error when making a REST | 1032 * If the used [http_1.Client] completes with an error when making a REST |
| 1028 * call, this method will complete with the same error. | 1033 * call, this method will complete with the same error. |
| 1029 */ | 1034 */ |
| 1030 async.Future<ListServiceRolloutsResponse> list(core.String serviceName, {core.
int pageSize, core.String pageToken}) { | 1035 async.Future<ListServiceRolloutsResponse> list(core.String serviceName, {core.
String pageToken, core.int pageSize}) { |
| 1031 var _url = null; | 1036 var _url = null; |
| 1032 var _queryParams = new core.Map(); | 1037 var _queryParams = new core.Map(); |
| 1033 var _uploadMedia = null; | 1038 var _uploadMedia = null; |
| 1034 var _uploadOptions = null; | 1039 var _uploadOptions = null; |
| 1035 var _downloadOptions = commons.DownloadOptions.Metadata; | 1040 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1036 var _body = null; | 1041 var _body = null; |
| 1037 | 1042 |
| 1038 if (serviceName == null) { | 1043 if (serviceName == null) { |
| 1039 throw new core.ArgumentError("Parameter serviceName is required."); | 1044 throw new core.ArgumentError("Parameter serviceName is required."); |
| 1040 } | 1045 } |
| 1046 if (pageToken != null) { |
| 1047 _queryParams["pageToken"] = [pageToken]; |
| 1048 } |
| 1041 if (pageSize != null) { | 1049 if (pageSize != null) { |
| 1042 _queryParams["pageSize"] = ["${pageSize}"]; | 1050 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1043 } | 1051 } |
| 1044 if (pageToken != null) { | |
| 1045 _queryParams["pageToken"] = [pageToken]; | |
| 1046 } | |
| 1047 | 1052 |
| 1048 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/ro
llouts'; | 1053 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/ro
llouts'; |
| 1049 | 1054 |
| 1050 var _response = _requester.request(_url, | 1055 var _response = _requester.request(_url, |
| 1051 "GET", | 1056 "GET", |
| 1052 body: _body, | 1057 body: _body, |
| 1053 queryParams: _queryParams, | 1058 queryParams: _queryParams, |
| 1054 uploadOptions: _uploadOptions, | 1059 uploadOptions: _uploadOptions, |
| 1055 uploadMedia: _uploadMedia, | 1060 uploadMedia: _uploadMedia, |
| 1056 downloadOptions: _downloadOptions); | 1061 downloadOptions: _downloadOptions); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 _json["syntax"] = syntax; | 1190 _json["syntax"] = syntax; |
| 1186 } | 1191 } |
| 1187 if (version != null) { | 1192 if (version != null) { |
| 1188 _json["version"] = version; | 1193 _json["version"] = version; |
| 1189 } | 1194 } |
| 1190 return _json; | 1195 return _json; |
| 1191 } | 1196 } |
| 1192 } | 1197 } |
| 1193 | 1198 |
| 1194 /** | 1199 /** |
| 1195 * Provides the configuration for non-admin_activity logging for a service. | 1200 * Specifies the audit configuration for a service. |
| 1196 * Controls exemptions and specific log sub-types. | 1201 * It consists of which permission types are logged, and what identities, if |
| 1202 * any, are exempted from logging. |
| 1203 * An AuditConifg must have one or more AuditLogConfigs. |
| 1197 */ | 1204 */ |
| 1198 class AuditConfig { | 1205 class AuditConfig { |
| 1199 /** | 1206 /** |
| 1200 * The configuration for each type of logging | 1207 * The configuration for logging of each type of permission. |
| 1201 * Next ID: 4 | 1208 * Next ID: 4 |
| 1202 */ | 1209 */ |
| 1203 core.List<AuditLogConfig> auditLogConfigs; | 1210 core.List<AuditLogConfig> auditLogConfigs; |
| 1204 /** | 1211 /** |
| 1205 * Specifies the identities that are exempted from "data access" audit | 1212 * Specifies the identities that are exempted from "data access" audit |
| 1206 * logging for the `service` specified above. | 1213 * logging for the `service` specified above. |
| 1207 * Follows the same format of Binding.members. | 1214 * Follows the same format of Binding.members. |
| 1215 * This field is deprecated in favor of per-permission-type exemptions. |
| 1208 */ | 1216 */ |
| 1209 core.List<core.String> exemptedMembers; | 1217 core.List<core.String> exemptedMembers; |
| 1210 /** | 1218 /** |
| 1211 * Specifies a service that will be enabled for audit logging. | 1219 * Specifies a service that will be enabled for audit logging. |
| 1212 * For example, `resourcemanager`, `storage`, `compute`. | 1220 * For example, `resourcemanager`, `storage`, `compute`. |
| 1213 * `allServices` is a special value that covers all services. | 1221 * `allServices` is a special value that covers all services. |
| 1214 */ | 1222 */ |
| 1215 core.String service; | 1223 core.String service; |
| 1216 | 1224 |
| 1217 AuditConfig(); | 1225 AuditConfig(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1236 if (exemptedMembers != null) { | 1244 if (exemptedMembers != null) { |
| 1237 _json["exemptedMembers"] = exemptedMembers; | 1245 _json["exemptedMembers"] = exemptedMembers; |
| 1238 } | 1246 } |
| 1239 if (service != null) { | 1247 if (service != null) { |
| 1240 _json["service"] = service; | 1248 _json["service"] = service; |
| 1241 } | 1249 } |
| 1242 return _json; | 1250 return _json; |
| 1243 } | 1251 } |
| 1244 } | 1252 } |
| 1245 | 1253 |
| 1246 /** Provides the configuration for a sub-type of logging. */ | 1254 /** |
| 1255 * Provides the configuration for logging a type of permissions. |
| 1256 * Example: |
| 1257 * |
| 1258 * { |
| 1259 * "audit_log_configs": [ |
| 1260 * { |
| 1261 * "log_type": "DATA_READ", |
| 1262 * "exempted_members": [ |
| 1263 * "user:foo@gmail.com" |
| 1264 * ] |
| 1265 * }, |
| 1266 * { |
| 1267 * "log_type": "DATA_WRITE", |
| 1268 * } |
| 1269 * ] |
| 1270 * } |
| 1271 * |
| 1272 * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting |
| 1273 * foo@gmail.com from DATA_READ logging. |
| 1274 */ |
| 1247 class AuditLogConfig { | 1275 class AuditLogConfig { |
| 1248 /** | 1276 /** |
| 1249 * Specifies the identities that are exempted from this type of logging | 1277 * Specifies the identities that do not cause logging for this type of |
| 1278 * permission. |
| 1250 * Follows the same format of Binding.members. | 1279 * Follows the same format of Binding.members. |
| 1251 */ | 1280 */ |
| 1252 core.List<core.String> exemptedMembers; | 1281 core.List<core.String> exemptedMembers; |
| 1253 /** | 1282 /** |
| 1254 * The log type that this config enables. | 1283 * The log type that this config enables. |
| 1255 * Possible string values are: | 1284 * Possible string values are: |
| 1256 * - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. | 1285 * - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. |
| 1257 * - "ADMIN_READ" : Log admin reads | 1286 * - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy |
| 1258 * - "DATA_WRITE" : Log data writes | 1287 * - "DATA_WRITE" : Data writes. Example: CloudSQL Users create |
| 1259 * - "DATA_READ" : Log data reads | 1288 * - "DATA_READ" : Data reads. Example: CloudSQL Users list |
| 1260 */ | 1289 */ |
| 1261 core.String logType; | 1290 core.String logType; |
| 1262 | 1291 |
| 1263 AuditLogConfig(); | 1292 AuditLogConfig(); |
| 1264 | 1293 |
| 1265 AuditLogConfig.fromJson(core.Map _json) { | 1294 AuditLogConfig.fromJson(core.Map _json) { |
| 1266 if (_json.containsKey("exemptedMembers")) { | 1295 if (_json.containsKey("exemptedMembers")) { |
| 1267 exemptedMembers = _json["exemptedMembers"]; | 1296 exemptedMembers = _json["exemptedMembers"]; |
| 1268 } | 1297 } |
| 1269 if (_json.containsKey("logType")) { | 1298 if (_json.containsKey("logType")) { |
| (...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3995 * value to zero and sets a new start time for the following | 4024 * value to zero and sets a new start time for the following |
| 3996 * points. | 4025 * points. |
| 3997 */ | 4026 */ |
| 3998 core.String metricKind; | 4027 core.String metricKind; |
| 3999 /** | 4028 /** |
| 4000 * The resource name of the metric descriptor. Depending on the | 4029 * The resource name of the metric descriptor. Depending on the |
| 4001 * implementation, the name typically includes: (1) the parent resource name | 4030 * implementation, the name typically includes: (1) the parent resource name |
| 4002 * that defines the scope of the metric type or of its data; and (2) the | 4031 * that defines the scope of the metric type or of its data; and (2) the |
| 4003 * metric's URL-encoded type, which also appears in the `type` field of this | 4032 * metric's URL-encoded type, which also appears in the `type` field of this |
| 4004 * descriptor. For example, following is the resource name of a custom | 4033 * descriptor. For example, following is the resource name of a custom |
| 4005 * metric within the GCP project 123456789: | 4034 * metric within the GCP project `my-project-id`: |
| 4006 * | 4035 * |
| 4007 * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpai
d%2Famount" | 4036 * "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%2
Fpaid%2Famount" |
| 4008 */ | 4037 */ |
| 4009 core.String name; | 4038 core.String name; |
| 4010 /** | 4039 /** |
| 4011 * The metric type, including its DNS name prefix. The type is not | 4040 * The metric type, including its DNS name prefix. The type is not |
| 4012 * URL-encoded. All user-defined metric types have the DNS name | 4041 * URL-encoded. All user-defined custom metric types have the DNS name |
| 4013 * `custom.googleapis.com`. Metric types should use a natural hierarchical | 4042 * `custom.googleapis.com`. Metric types should use a natural hierarchical |
| 4014 * grouping. For example: | 4043 * grouping. For example: |
| 4015 * | 4044 * |
| 4016 * "custom.googleapis.com/invoice/paid/amount" | 4045 * "custom.googleapis.com/invoice/paid/amount" |
| 4017 * "appengine.googleapis.com/http/server/response_latencies" | 4046 * "appengine.googleapis.com/http/server/response_latencies" |
| 4018 */ | 4047 */ |
| 4019 core.String type; | 4048 core.String type; |
| 4020 /** | 4049 /** |
| 4021 * The unit in which the metric value is reported. It is only applicable | 4050 * The unit in which the metric value is reported. It is only applicable |
| 4022 * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The | 4051 * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4793 * "role": "roles/viewer", | 4822 * "role": "roles/viewer", |
| 4794 * "members": ["user:sean@example.com"] | 4823 * "members": ["user:sean@example.com"] |
| 4795 * } | 4824 * } |
| 4796 * ] | 4825 * ] |
| 4797 * } | 4826 * } |
| 4798 * | 4827 * |
| 4799 * For a description of IAM and its features, see the | 4828 * For a description of IAM and its features, see the |
| 4800 * [IAM developer's guide](https://cloud.google.com/iam). | 4829 * [IAM developer's guide](https://cloud.google.com/iam). |
| 4801 */ | 4830 */ |
| 4802 class Policy { | 4831 class Policy { |
| 4803 /** | 4832 /** Specifies cloud audit logging configuration for this policy. */ |
| 4804 * Specifies audit logging configs for "data access". | |
| 4805 * "data access": generally refers to data reads/writes and admin reads. | |
| 4806 * "admin activity": generally refers to admin writes. | |
| 4807 * | |
| 4808 * Note: `AuditConfig` doesn't apply to "admin activity", which always | |
| 4809 * enables audit logging. | |
| 4810 */ | |
| 4811 core.List<AuditConfig> auditConfigs; | 4833 core.List<AuditConfig> auditConfigs; |
| 4812 /** | 4834 /** |
| 4813 * Associates a list of `members` to a `role`. | 4835 * Associates a list of `members` to a `role`. |
| 4814 * Multiple `bindings` must not be specified for the same `role`. | 4836 * Multiple `bindings` must not be specified for the same `role`. |
| 4815 * `bindings` with no members will result in an error. | 4837 * `bindings` with no members will result in an error. |
| 4816 */ | 4838 */ |
| 4817 core.List<Binding> bindings; | 4839 core.List<Binding> bindings; |
| 4818 /** | 4840 /** |
| 4819 * `etag` is used for optimistic concurrency control as a way to help | 4841 * `etag` is used for optimistic concurrency control as a way to help |
| 4820 * prevent simultaneous updates of a policy from overwriting each other. | 4842 * prevent simultaneous updates of a policy from overwriting each other. |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5391 | 5413 |
| 5392 /** Request message for `SetIamPolicy` method. */ | 5414 /** Request message for `SetIamPolicy` method. */ |
| 5393 class SetIamPolicyRequest { | 5415 class SetIamPolicyRequest { |
| 5394 /** | 5416 /** |
| 5395 * REQUIRED: The complete policy to be applied to the `resource`. The size of | 5417 * REQUIRED: The complete policy to be applied to the `resource`. The size of |
| 5396 * the policy is limited to a few 10s of KB. An empty policy is a | 5418 * the policy is limited to a few 10s of KB. An empty policy is a |
| 5397 * valid policy but certain Cloud Platform services (such as Projects) | 5419 * valid policy but certain Cloud Platform services (such as Projects) |
| 5398 * might reject them. | 5420 * might reject them. |
| 5399 */ | 5421 */ |
| 5400 Policy policy; | 5422 Policy policy; |
| 5423 /** |
| 5424 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only |
| 5425 * the fields in the mask will be modified. If no mask is provided, a default |
| 5426 * mask is used: |
| 5427 * paths: "bindings, etag" |
| 5428 * This field is only used by Cloud IAM. |
| 5429 */ |
| 5430 core.String updateMask; |
| 5401 | 5431 |
| 5402 SetIamPolicyRequest(); | 5432 SetIamPolicyRequest(); |
| 5403 | 5433 |
| 5404 SetIamPolicyRequest.fromJson(core.Map _json) { | 5434 SetIamPolicyRequest.fromJson(core.Map _json) { |
| 5405 if (_json.containsKey("policy")) { | 5435 if (_json.containsKey("policy")) { |
| 5406 policy = new Policy.fromJson(_json["policy"]); | 5436 policy = new Policy.fromJson(_json["policy"]); |
| 5407 } | 5437 } |
| 5438 if (_json.containsKey("updateMask")) { |
| 5439 updateMask = _json["updateMask"]; |
| 5440 } |
| 5408 } | 5441 } |
| 5409 | 5442 |
| 5410 core.Map toJson() { | 5443 core.Map toJson() { |
| 5411 var _json = new core.Map(); | 5444 var _json = new core.Map(); |
| 5412 if (policy != null) { | 5445 if (policy != null) { |
| 5413 _json["policy"] = (policy).toJson(); | 5446 _json["policy"] = (policy).toJson(); |
| 5414 } | 5447 } |
| 5448 if (updateMask != null) { |
| 5449 _json["updateMask"] = updateMask; |
| 5450 } |
| 5415 return _json; | 5451 return _json; |
| 5416 } | 5452 } |
| 5417 } | 5453 } |
| 5418 | 5454 |
| 5419 /** | 5455 /** |
| 5420 * `SourceContext` represents information about the source of a | 5456 * `SourceContext` represents information about the source of a |
| 5421 * protobuf element, like the file in which it is defined. | 5457 * protobuf element, like the file in which it is defined. |
| 5422 */ | 5458 */ |
| 5423 class SourceContext { | 5459 class SourceContext { |
| 5424 /** | 5460 /** |
| (...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6202 var _json = new core.Map(); | 6238 var _json = new core.Map(); |
| 6203 if (restriction != null) { | 6239 if (restriction != null) { |
| 6204 _json["restriction"] = restriction; | 6240 _json["restriction"] = restriction; |
| 6205 } | 6241 } |
| 6206 if (selector != null) { | 6242 if (selector != null) { |
| 6207 _json["selector"] = selector; | 6243 _json["selector"] = selector; |
| 6208 } | 6244 } |
| 6209 return _json; | 6245 return _json; |
| 6210 } | 6246 } |
| 6211 } | 6247 } |
| OLD | NEW |