@googleapis/sourcerepo 0.3.1 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/build/v1.d.ts +18 -18
- package/package.json +2 -2
- package/v1.ts +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### [0.3.5](https://github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.4...sourcerepo-v0.3.5) (2022-04-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **sourcerepo:** update the API ([13c4e9b](https://github.com/googleapis/google-api-nodejs-client/commit/13c4e9b27676fcf93e1a14d6916dccb5481bd53a))
|
|
9
|
+
|
|
10
|
+
### [0.3.4](https://github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.3...sourcerepo-v0.3.4) (2022-03-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **sourcerepo:** update the API ([7e87df4](https://github.com/googleapis/google-api-nodejs-client/commit/7e87df4e15e2ea1108b8b47f776b21e39ea584f3))
|
|
16
|
+
|
|
17
|
+
### [0.3.3](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.2...sourcerepo-v0.3.3) (2021-12-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **sourcerepo:** update the API ([a728a91](https://www.github.com/googleapis/google-api-nodejs-client/commit/a728a911c449e3ae8285e551a72876682964dee3))
|
|
23
|
+
|
|
24
|
+
### [0.3.2](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.1...sourcerepo-v0.3.2) (2021-10-28)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **sourcerepo:** update the API ([1233dd7](https://www.github.com/googleapis/google-api-nodejs-client/commit/1233dd723d71888e7199f33447084c06a9d4657c))
|
|
30
|
+
|
|
3
31
|
### [0.3.1](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.0...sourcerepo-v0.3.1) (2021-10-18)
|
|
4
32
|
|
|
5
33
|
|
package/build/v1.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
72
72
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
|
|
75
|
+
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
|
|
76
76
|
*/
|
|
77
77
|
export interface Schema$AuditConfig {
|
|
78
78
|
/**
|
|
@@ -98,24 +98,24 @@ export declare namespace sourcerepo_v1 {
|
|
|
98
98
|
logType?: string | null;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Associates `members
|
|
101
|
+
* Associates `members`, or principals, with a `role`.
|
|
102
102
|
*/
|
|
103
103
|
export interface Schema$Binding {
|
|
104
104
|
/**
|
|
105
|
-
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the
|
|
105
|
+
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
106
106
|
*/
|
|
107
107
|
condition?: Schema$Expr;
|
|
108
108
|
/**
|
|
109
|
-
* Specifies the
|
|
109
|
+
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
|
|
110
110
|
*/
|
|
111
111
|
members?: string[] | null;
|
|
112
112
|
/**
|
|
113
|
-
* Role that is assigned to `members
|
|
113
|
+
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
114
114
|
*/
|
|
115
115
|
role?: string | null;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
118
|
+
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
119
119
|
*/
|
|
120
120
|
export interface Schema$Empty {
|
|
121
121
|
}
|
|
@@ -200,7 +200,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
200
200
|
} | null;
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
|
-
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members
|
|
203
|
+
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
204
204
|
*/
|
|
205
205
|
export interface Schema$Policy {
|
|
206
206
|
/**
|
|
@@ -208,7 +208,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
208
208
|
*/
|
|
209
209
|
auditConfigs?: Schema$AuditConfig[];
|
|
210
210
|
/**
|
|
211
|
-
* Associates a list of `members
|
|
211
|
+
* Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
|
|
212
212
|
*/
|
|
213
213
|
bindings?: Schema$Binding[];
|
|
214
214
|
/**
|
|
@@ -288,7 +288,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
288
288
|
*/
|
|
289
289
|
export interface Schema$SetIamPolicyRequest {
|
|
290
290
|
/**
|
|
291
|
-
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
|
|
291
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
|
|
292
292
|
*/
|
|
293
293
|
policy?: Schema$Policy;
|
|
294
294
|
/**
|
|
@@ -346,7 +346,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
346
346
|
*/
|
|
347
347
|
export interface Schema$TestIamPermissionsRequest {
|
|
348
348
|
/**
|
|
349
|
-
* The set of permissions to check for the `resource`. Permissions with wildcards (such as
|
|
349
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
350
350
|
*/
|
|
351
351
|
permissions?: string[] | null;
|
|
352
352
|
}
|
|
@@ -763,9 +763,9 @@ export declare namespace sourcerepo_v1 {
|
|
|
763
763
|
*
|
|
764
764
|
* // Do the magic
|
|
765
765
|
* const res = await sourcerepo.projects.repos.getIamPolicy({
|
|
766
|
-
* // Optional. The policy
|
|
766
|
+
* // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
767
767
|
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
768
|
-
* // REQUIRED: The resource for which the policy is being requested. See
|
|
768
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
769
769
|
* resource: 'projects/my-project/repos/.*',
|
|
770
770
|
* });
|
|
771
771
|
* console.log(res.data);
|
|
@@ -962,7 +962,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
962
962
|
*
|
|
963
963
|
* // Do the magic
|
|
964
964
|
* const res = await sourcerepo.projects.repos.setIamPolicy({
|
|
965
|
-
* // REQUIRED: The resource for which the policy is being specified. See
|
|
965
|
+
* // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
966
966
|
* resource: 'projects/my-project/repos/.*',
|
|
967
967
|
*
|
|
968
968
|
* // Request body metadata
|
|
@@ -1101,7 +1101,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
1101
1101
|
*
|
|
1102
1102
|
* // Do the magic
|
|
1103
1103
|
* const res = await sourcerepo.projects.repos.testIamPermissions({
|
|
1104
|
-
* // REQUIRED: The resource for which the policy detail is being requested. See
|
|
1104
|
+
* // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1105
1105
|
* resource: 'projects/my-project/repos/.*',
|
|
1106
1106
|
*
|
|
1107
1107
|
* // Request body metadata
|
|
@@ -1163,11 +1163,11 @@ export declare namespace sourcerepo_v1 {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
export interface Params$Resource$Projects$Repos$Getiampolicy extends StandardParameters {
|
|
1165
1165
|
/**
|
|
1166
|
-
* Optional. The policy
|
|
1166
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1167
1167
|
*/
|
|
1168
1168
|
'options.requestedPolicyVersion'?: number;
|
|
1169
1169
|
/**
|
|
1170
|
-
* REQUIRED: The resource for which the policy is being requested. See
|
|
1170
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1171
1171
|
*/
|
|
1172
1172
|
resource?: string;
|
|
1173
1173
|
}
|
|
@@ -1197,7 +1197,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
export interface Params$Resource$Projects$Repos$Setiampolicy extends StandardParameters {
|
|
1199
1199
|
/**
|
|
1200
|
-
* REQUIRED: The resource for which the policy is being specified. See
|
|
1200
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1201
1201
|
*/
|
|
1202
1202
|
resource?: string;
|
|
1203
1203
|
/**
|
|
@@ -1217,7 +1217,7 @@ export declare namespace sourcerepo_v1 {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
export interface Params$Resource$Projects$Repos$Testiampermissions extends StandardParameters {
|
|
1219
1219
|
/**
|
|
1220
|
-
* REQUIRED: The resource for which the policy detail is being requested. See
|
|
1220
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1221
1221
|
*/
|
|
1222
1222
|
resource?: string;
|
|
1223
1223
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/sourcerepo",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "sourcerepo",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@microsoft/api-extractor": "^7.8.10",
|
|
36
36
|
"gts": "^2.0.0",
|
|
37
37
|
"null-loader": "^4.0.0",
|
|
38
|
-
"ts-loader": "^
|
|
38
|
+
"ts-loader": "^9.0.0",
|
|
39
39
|
"typescript": "~3.7.0",
|
|
40
40
|
"webpack": "^5.0.0",
|
|
41
41
|
"webpack-cli": "^4.0.0"
|
package/v1.ts
CHANGED
|
@@ -126,7 +126,7 @@ export namespace sourcerepo_v1 {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
|
|
129
|
+
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
|
|
130
130
|
*/
|
|
131
131
|
export interface Schema$AuditConfig {
|
|
132
132
|
/**
|
|
@@ -152,24 +152,24 @@ export namespace sourcerepo_v1 {
|
|
|
152
152
|
logType?: string | null;
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
* Associates `members
|
|
155
|
+
* Associates `members`, or principals, with a `role`.
|
|
156
156
|
*/
|
|
157
157
|
export interface Schema$Binding {
|
|
158
158
|
/**
|
|
159
|
-
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the
|
|
159
|
+
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
160
160
|
*/
|
|
161
161
|
condition?: Schema$Expr;
|
|
162
162
|
/**
|
|
163
|
-
* Specifies the
|
|
163
|
+
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
|
|
164
164
|
*/
|
|
165
165
|
members?: string[] | null;
|
|
166
166
|
/**
|
|
167
|
-
* Role that is assigned to `members
|
|
167
|
+
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
168
168
|
*/
|
|
169
169
|
role?: string | null;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
172
|
+
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
173
173
|
*/
|
|
174
174
|
export interface Schema$Empty {}
|
|
175
175
|
/**
|
|
@@ -249,7 +249,7 @@ export namespace sourcerepo_v1 {
|
|
|
249
249
|
response?: {[key: string]: any} | null;
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members
|
|
252
|
+
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
253
253
|
*/
|
|
254
254
|
export interface Schema$Policy {
|
|
255
255
|
/**
|
|
@@ -257,7 +257,7 @@ export namespace sourcerepo_v1 {
|
|
|
257
257
|
*/
|
|
258
258
|
auditConfigs?: Schema$AuditConfig[];
|
|
259
259
|
/**
|
|
260
|
-
* Associates a list of `members
|
|
260
|
+
* Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
|
|
261
261
|
*/
|
|
262
262
|
bindings?: Schema$Binding[];
|
|
263
263
|
/**
|
|
@@ -333,7 +333,7 @@ export namespace sourcerepo_v1 {
|
|
|
333
333
|
*/
|
|
334
334
|
export interface Schema$SetIamPolicyRequest {
|
|
335
335
|
/**
|
|
336
|
-
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud
|
|
336
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
|
|
337
337
|
*/
|
|
338
338
|
policy?: Schema$Policy;
|
|
339
339
|
/**
|
|
@@ -388,7 +388,7 @@ export namespace sourcerepo_v1 {
|
|
|
388
388
|
*/
|
|
389
389
|
export interface Schema$TestIamPermissionsRequest {
|
|
390
390
|
/**
|
|
391
|
-
* The set of permissions to check for the `resource`. Permissions with wildcards (such as
|
|
391
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
392
392
|
*/
|
|
393
393
|
permissions?: string[] | null;
|
|
394
394
|
}
|
|
@@ -1170,9 +1170,9 @@ export namespace sourcerepo_v1 {
|
|
|
1170
1170
|
*
|
|
1171
1171
|
* // Do the magic
|
|
1172
1172
|
* const res = await sourcerepo.projects.repos.getIamPolicy({
|
|
1173
|
-
* // Optional. The policy
|
|
1173
|
+
* // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1174
1174
|
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
1175
|
-
* // REQUIRED: The resource for which the policy is being requested. See
|
|
1175
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1176
1176
|
* resource: 'projects/my-project/repos/.*',
|
|
1177
1177
|
* });
|
|
1178
1178
|
* console.log(res.data);
|
|
@@ -1585,7 +1585,7 @@ export namespace sourcerepo_v1 {
|
|
|
1585
1585
|
*
|
|
1586
1586
|
* // Do the magic
|
|
1587
1587
|
* const res = await sourcerepo.projects.repos.setIamPolicy({
|
|
1588
|
-
* // REQUIRED: The resource for which the policy is being specified. See
|
|
1588
|
+
* // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1589
1589
|
* resource: 'projects/my-project/repos/.*',
|
|
1590
1590
|
*
|
|
1591
1591
|
* // Request body metadata
|
|
@@ -1867,7 +1867,7 @@ export namespace sourcerepo_v1 {
|
|
|
1867
1867
|
*
|
|
1868
1868
|
* // Do the magic
|
|
1869
1869
|
* const res = await sourcerepo.projects.repos.testIamPermissions({
|
|
1870
|
-
* // REQUIRED: The resource for which the policy detail is being requested. See
|
|
1870
|
+
* // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1871
1871
|
* resource: 'projects/my-project/repos/.*',
|
|
1872
1872
|
*
|
|
1873
1873
|
* // Request body metadata
|
|
@@ -2014,11 +2014,11 @@ export namespace sourcerepo_v1 {
|
|
|
2014
2014
|
export interface Params$Resource$Projects$Repos$Getiampolicy
|
|
2015
2015
|
extends StandardParameters {
|
|
2016
2016
|
/**
|
|
2017
|
-
* Optional. The policy
|
|
2017
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
2018
2018
|
*/
|
|
2019
2019
|
'options.requestedPolicyVersion'?: number;
|
|
2020
2020
|
/**
|
|
2021
|
-
* REQUIRED: The resource for which the policy is being requested. See
|
|
2021
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
2022
2022
|
*/
|
|
2023
2023
|
resource?: string;
|
|
2024
2024
|
}
|
|
@@ -2052,7 +2052,7 @@ export namespace sourcerepo_v1 {
|
|
|
2052
2052
|
export interface Params$Resource$Projects$Repos$Setiampolicy
|
|
2053
2053
|
extends StandardParameters {
|
|
2054
2054
|
/**
|
|
2055
|
-
* REQUIRED: The resource for which the policy is being specified. See
|
|
2055
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
2056
2056
|
*/
|
|
2057
2057
|
resource?: string;
|
|
2058
2058
|
|
|
@@ -2076,7 +2076,7 @@ export namespace sourcerepo_v1 {
|
|
|
2076
2076
|
export interface Params$Resource$Projects$Repos$Testiampermissions
|
|
2077
2077
|
extends StandardParameters {
|
|
2078
2078
|
/**
|
|
2079
|
-
* REQUIRED: The resource for which the policy detail is being requested. See
|
|
2079
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
2080
2080
|
*/
|
|
2081
2081
|
resource?: string;
|
|
2082
2082
|
|