Gcp/iam
@swamp/gcp/iamv2026.05.26.1
01README
Google Cloud iam infrastructure models
02Release Notes
- Added: roles
03Models
@swamp/gcp/iam/policiesv2026.05.25.1policies.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| annotations? | record | A key-value map to store arbitrary metadata for the `Policy`. Keys can be up to 63 characters. Values can be up to 255 characters. |
| createTime? | string | Output only. The time when the `Policy` was created. |
| deleteTime? | string | Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted. |
| displayName? | string | A user-specified description of the `Policy`. This value can be up to 63 characters. |
| etag? | string | An opaque tag that identifies the current version of the `Policy`. IAM uses this value to help manage concurrent updates, so they do not cause one update to be overwritten by another. If this field is present in a CreatePolicyRequest, the value is ignored. |
| kind? | string | Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`. |
| name? | string | Immutable. The resource name of the `Policy`, which must be unique. Format: `policies/{attachment_point}/denypolicies/{policy_id}` The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example, `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. For organizations and folders, use the numeric ID in the full resource name. For projects, requests can u |
| rules? | array | A list of rules that specify the behavior of the `Policy`. All of the rules should be of the `kind` specified in the `Policy`. |
| uid? | string | Immutable. The globally unique ID of the `Policy`. Assigned automatically when the `Policy` is created. |
| updateTime? | string | Output only. The time when the `Policy` was last updated. |
fn get(identifier: string)
Get a policies
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the policies |
fn update()
Update policies attributes
fn delete(identifier: string)
Delete the policies
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the policies |
fn sync()
Sync policies state from GCP
fn create_policy(annotations?: any, createTime?: any, deleteTime?: any, displayName?: any, etag?: any, kind?: any, name?: any, rules?: any, uid?: any, updateTime?: any)
create policy
| Argument | Type | Description |
|---|---|---|
| annotations? | any | |
| createTime? | any | |
| deleteTime? | any | |
| displayName? | any | |
| etag? | any | |
| kind? | any | |
| name? | any | |
| rules? | any | |
| uid? | any | |
| updateTime? | any |
fn list_policies()
list policies
Resources
state(infinite)— Data for an IAM policy.
@swamp/gcp/iam/rolesv2026.05.26.1roles.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| role? | object | A role in the Identity and Access Management API. |
| roleId? | string | The role ID to use for this role. A role ID may contain alphanumeric characters, underscores (`_`), and periods (`.`). It must contain a minimum of 3 characters and a maximum of 64 characters. |
| deleted? | boolean | The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole. |
| description? | string | Optional. A human-readable description for the role. |
| etag? | string | Used to perform a consistent read-modify-write. |
| includedPermissions? | array | The names of the permissions this role grants when bound in an IAM policy. |
| name? | string | The name of the role. When `Role` is used in `CreateRole`, the role name must not be set. When `Role` is used in output and other input such as `UpdateRole`, the role name is the complete path. For example, `roles/logging.viewer` for predefined roles, `organizations/{ORGANIZATION_ID}/roles/myRole` for organization-level custom roles, and `projects/{PROJECT_ID}/roles/myRole` for project-level custom roles. |
| stage? | enum | The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role. |
| title? | string | Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
fn create()
Create a roles
fn get(identifier: string)
Get a roles
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the roles |
fn update()
Update roles attributes
fn delete(identifier: string)
Delete the roles
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the roles |
fn sync()
Sync roles state from GCP
fn list(pageSize?: number, showDeleted?: boolean, view?: string, maxPages?: number)
List roles resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional limit on the number of roles to include in the response. The default is 300, and the maximum is 1,000. |
| showDeleted? | boolean | Include Roles that have been deleted. |
| view? | string | Optional view for the returned Role objects. When `FULL` is specified, the `includedPermissions` field is returned, which includes a list of all permissions in the role. The default value is `BASIC`, which does not return the `includedPermissions` field. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn undelete(etag?: any)
undelete
| Argument | Type | Description |
|---|---|---|
| etag? | any |
Resources
state(infinite)— A role in the Identity and Access Management API.
04Previous Versions
2026.05.25.1May 25, 2026
- Updated: policies
Removed 1 models
2026.05.24.1May 24, 2026
- Updated: roles, policies
2026.05.21.3May 21, 2026
- Updated: policies, roles
2026.05.21.2May 21, 2026
Added 1 models
2026.05.19.2May 19, 2026
2026.05.19.1May 19, 2026
2026.04.23.1Apr 23, 2026
2026.04.03.3Apr 3, 2026
- Updated: policies
2026.04.03.1Apr 3, 2026
- Updated: policies
2026.04.02.2Apr 2, 2026
2026.03.27.1Mar 27, 2026
- Added: policies
05Stats
A
100 / 100
Downloads
10
Archive size
37.4 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels