@googleapis/sourcerepo 0.2.0 → 0.3.4
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 +42 -0
- package/README.md +4 -23
- package/build/v1.d.ts +9 -9
- package/package.json +2 -2
- package/v1.ts +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### [0.3.4](https://github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.3...sourcerepo-v0.3.4) (2022-03-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **sourcerepo:** update the API ([7e87df4](https://github.com/googleapis/google-api-nodejs-client/commit/7e87df4e15e2ea1108b8b47f776b21e39ea584f3))
|
|
9
|
+
|
|
10
|
+
### [0.3.3](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.2...sourcerepo-v0.3.3) (2021-12-30)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **sourcerepo:** update the API ([a728a91](https://www.github.com/googleapis/google-api-nodejs-client/commit/a728a911c449e3ae8285e551a72876682964dee3))
|
|
16
|
+
|
|
17
|
+
### [0.3.2](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.1...sourcerepo-v0.3.2) (2021-10-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **sourcerepo:** update the API ([1233dd7](https://www.github.com/googleapis/google-api-nodejs-client/commit/1233dd723d71888e7199f33447084c06a9d4657c))
|
|
23
|
+
|
|
24
|
+
### [0.3.1](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.3.0...sourcerepo-v0.3.1) (2021-10-18)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **sourcerepo:** update the API ([6ae8dd3](https://www.github.com/googleapis/google-api-nodejs-client/commit/6ae8dd3c13000ff4265bf6d974ceae7940eba8e2))
|
|
30
|
+
|
|
31
|
+
## [0.3.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.2.0...sourcerepo-v0.3.0) (2021-09-14)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **auth:** adds support workload identity federation ([#2517](https://www.github.com/googleapis/google-api-nodejs-client/issues/2517)) ([a10707c](https://www.github.com/googleapis/google-api-nodejs-client/commit/a10707c477759e7c9ef6360a2fe800856fb600c1))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* **deps:** update dependency googleapis-common to v5 ([#2497](https://www.github.com/googleapis/google-api-nodejs-client/issues/2497)) ([fec087a](https://www.github.com/googleapis/google-api-nodejs-client/commit/fec087abcf3d994dd41c3ffa0a0c12b1f9f09dae))
|
|
42
|
+
* **sourcerepo:** update the API ([1412a86](https://www.github.com/googleapis/google-api-nodejs-client/commit/1412a86d3e10175239cbae7688762fbbdd9ed1f2))
|
|
43
|
+
* upgrade webpack from 4 to 5 ([#2524](https://www.github.com/googleapis/google-api-nodejs-client/issues/2524)) ([ecfd8bf](https://www.github.com/googleapis/google-api-nodejs-client/commit/ecfd8bfcd06e1beabff7ec9a8c4000222379eb8d))
|
|
44
|
+
|
|
3
45
|
## [0.2.0](https://www.github.com/googleapis/google-api-nodejs-client/compare/sourcerepo-v0.1.0...sourcerepo-v0.2.0) (2021-03-18)
|
|
4
46
|
|
|
5
47
|
|
package/README.md
CHANGED
|
@@ -7,37 +7,18 @@
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
$ npm install googleapis
|
|
10
|
+
$ npm install @googleapis/sourcerepo
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).
|
|
15
|
-
|
|
16
|
-
## Building a browser bundle
|
|
17
|
-
|
|
18
|
-
This library can be used in a browser. To prepare a single file bundle, clone the
|
|
19
|
-
[repository](https://github.com/googleapis/google-api-nodejs-client) and run
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
$ cd src/apis/sourcerepo
|
|
23
|
-
$ npm install
|
|
24
|
-
$ npm run webpack
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
The generated bundle will be written to `dist/sourcerepo.min.js`. Use it from your HTML file:
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<script src="/path/to/sourcerepo.min.js"></script>
|
|
31
|
-
<script>
|
|
32
|
-
const { sourcerepo, auth } = Sourcerepo;
|
|
33
|
-
</script>
|
|
34
|
-
```
|
|
15
|
+
Information on classes can be found in [Googleapis Documentation](https://googleapis.dev/nodejs/googleapis/latest/sourcerepo/classes/Sourcerepo.html).
|
|
35
16
|
|
|
36
17
|
## License
|
|
37
|
-
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/
|
|
18
|
+
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/main/LICENSE).
|
|
38
19
|
|
|
39
20
|
## Contributing
|
|
40
|
-
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/
|
|
21
|
+
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/main/.github/CONTRIBUTING.md).
|
|
41
22
|
|
|
42
23
|
## Questions/problems?
|
|
43
24
|
* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
|
package/build/v1.d.ts
CHANGED
|
@@ -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 Cloud Platform 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
|
/**
|
|
@@ -763,7 +763,7 @@ 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
768
|
* // REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
|
|
769
769
|
* resource: 'projects/my-project/repos/.*',
|
|
@@ -1163,7 +1163,7 @@ 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
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/sourcerepo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.4",
|
|
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
|
@@ -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 Cloud Platform 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
|
/**
|
|
@@ -1170,7 +1170,7 @@ 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
1175
|
* // REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
|
|
1176
1176
|
* resource: 'projects/my-project/repos/.*',
|
|
@@ -2014,7 +2014,7 @@ 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
|
/**
|