Gcp/securesourcemanager
@swamp/gcp/securesourcemanagerv2026.10.23.1
01README
Google Cloud securesourcemanager infrastructure models
02Release Notes
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
03Behaviors
@swamp/gcp/securesourcemanager/instancesv2026.10.23.1instances.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| kmsKey? | string | Optional. Immutable. Customer-managed encryption key name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. |
| labels? | record | Optional. Labels as key value pairs. Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. For more information, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding). |
| name? | string | Identifier. A unique identifier for an instance. The name should be of the format: `projects/{project_number}/locations/{location_id}/instances/{instance_id}` `project_number`: Maps to a unique int64 id assigned to each project. `location_id`: Refers to the region where the instance will be deployed. Since Secure Source Manager is a regional service, it must be one of the valid GCP regions. `instance_id`: User provided name for the instance, must be unique for a project_number and location_id co |
| privateConfig? | object | Optional. Private settings for private instance. |
| workforceIdentityFederationConfig? | object | Optional. Configuration for Workforce Identity Federation to support third party identity provider. If unset, defaults to the Google OIDC IdP. |
| instanceId? | string | Required. ID of the instance to be created. |
| requestId? | string | Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID w |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create(waitForReady?: boolean)
Create a instances
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
fn get(identifier: string)
Get a instances
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the instances |
fn delete(identifier: string)
Delete the instances
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the instances |
fn sync(identifier?: string)
Sync instances state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific instances by name (e.g. one discovered by list) |
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List instances resources
| Argument | Type | Description |
|---|---|---|
| filter? | string | Optional. Filter for filtering results. |
| orderBy? | string | Optional. Hint for how to order the results. |
| pageSize? | number | Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn get_iam_policy(options_requestedPolicyVersion?: any)
get iam policy
| Argument | Type | Description |
|---|---|---|
| options_requestedPolicyVersion? | any |
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
| Argument | Type | Description |
|---|---|---|
| policy? | any | |
| updateMask? | any |
fn test_iam_permissions(permissions?: any)
test iam permissions
| Argument | Type | Description |
|---|---|---|
| permissions? | any |
Resources
state(infinite)— A resource that represents a Secure Source Manager instance.
@swamp/gcp/securesourcemanager/locationsv2026.10.23.1locations.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| name | string | The resource that owns the locations collection, if applicable. |
fn get(identifier: string)
Get a locations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the locations |
fn sync(identifier?: string)
Sync locations state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific locations by name (e.g. one discovered by list) |
fn list(extraLocationTypes?: string, filter?: string, pageSize?: number, maxPages?: number)
List locations resources
| Argument | Type | Description |
|---|---|---|
| extraLocationTypes? | string | Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. |
| filter? | string | A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). |
| pageSize? | number | The maximum number of results to return. If not set, the service selects a default. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/securesourcemanager/repositoriesv2026.10.23.1repositories.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| description? | string | Optional. Description of the repository, which cannot exceed 500 characters. |
| initialConfig? | object | Input only. Initial configurations for the repository. |
| name? | string | Identifier. A unique identifier for a repository. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}` |
| scanConfig? | object | Optional. Provides configuration for scanning. |
| serviceAccount? | string | Optional. Repository level service account (BYOSA). |
| repositoryId? | string | Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a repositories
fn get(identifier: string)
Get a repositories
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the repositories |
fn update(identifier?: string)
Update repositories attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific repositories by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the repositories
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the repositories |
fn sync(identifier?: string)
Sync repositories state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific repositories by name (e.g. one discovered by list) |
fn list(filter?: string, instance?: string, pageSize?: number, maxPages?: number)
List repositories resources
| Argument | Type | Description |
|---|---|---|
| filter? | string | Optional. Filter results. |
| instance? | string | Optional. The name of the instance in which the repository is hosted, formatted as `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. When listing repositories via securesourcemanager.googleapis.com, this field is required. When listing repositories via *.sourcemanager.dev, this field is ignored. |
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn fetch_blob(sha?: any)
fetch blob
| Argument | Type | Description |
|---|---|---|
| sha? | any |
fn fetch_refs(pageSize?: any, pageToken?: any, type?: any)
fetch refs
| Argument | Type | Description |
|---|---|---|
| pageSize? | any | |
| pageToken? | any | |
| type? | any |
fn fetch_tree(pageSize?: any, pageToken?: any, recursive?: any, ref?: any)
fetch tree
| Argument | Type | Description |
|---|---|---|
| pageSize? | any | |
| pageToken? | any | |
| recursive? | any | |
| ref? | any |
fn get_iam_policy(options_requestedPolicyVersion?: any)
get iam policy
| Argument | Type | Description |
|---|---|---|
| options_requestedPolicyVersion? | any |
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
| Argument | Type | Description |
|---|---|---|
| policy? | any | |
| updateMask? | any |
fn test_iam_permissions(permissions?: any)
test iam permissions
| Argument | Type | Description |
|---|---|---|
| permissions? | any |
Resources
state(infinite)— Metadata of a Secure Source Manager repository.
@swamp/gcp/securesourcemanager/repositories-branchrulesv2026.10.23.1repositories_branchrules.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| allowStaleReviews? | boolean | Optional. Determines if allow stale reviews or approvals before merging to the branch. |
| annotations? | record | Optional. User annotations. These attributes can only be set and used by the user. See https://google.aip.dev/128#annotations for more details such as format and size limitations. |
| disabled? | boolean | Optional. Determines if the branch rule is disabled or not. |
| includePattern? | string | Optional. The pattern of the branch that can match to this BranchRule. Specified as regex..* for all branches. Examples: main, (main|release.*). Current MVP phase only support `.*` for wildcard. |
| minimumApprovalsCount? | number | Optional. The minimum number of approvals required for the branch rule to be matched. |
| minimumReviewsCount? | number | Optional. The minimum number of reviews required for the branch rule to be matched. |
| name? | string | Identifier. A unique identifier for a BranchRule. The name should be of the format: `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}` |
| requireCodeOwnerApproval? | boolean | Optional. Determines if code owners must approve before merging to the branch. |
| requireCommentsResolved? | boolean | Optional. Determines if require comments resolved before merging to the branch. |
| requireLinearHistory? | boolean | Optional. Determines if require linear history before merging to the branch. |
| requirePullRequest? | boolean | Optional. Determines if the branch rule requires a pull request or not. |
| requiredStatusChecks? | array | Optional. List of required status checks before merging to the branch. |
| branchRuleId? | string | The branchRuleId for this resource |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a branchRules
fn get(identifier: string)
Get a branchRules
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the branchRules |
fn update(identifier?: string)
Update branchRules attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific branchRules by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the branchRules
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the branchRules |
fn sync(identifier?: string)
Sync branchRules state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific branchRules by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List branchRules resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— Metadata of a BranchRule. BranchRule is the protection rule to enforce pre-de...
@swamp/gcp/securesourcemanager/repositories-hooksv2026.10.23.1repositories_hooks.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| disabled? | boolean | Optional. Determines if the hook disabled or not. Set to true to stop sending traffic. |
| events? | array | Optional. The events that trigger hook on. |
| name? | string | Identifier. A unique identifier for a Hook. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}` |
| pushOption? | object | Optional. The trigger option for push events. |
| sensitiveQueryString? | string | Optional. The sensitive query string to be appended to the target URI. |
| serviceAccountAuth? | boolean | Optional. Determines if the hook uses the Repository Service Account to generate an OIDC ID Token for webhook authentication. |
| targetUri? | string | Required. The target URI to which the payloads will be delivered. |
| hookId? | string | Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a hooks
fn get(identifier: string)
Get a hooks
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the hooks |
fn update(identifier?: string)
Update hooks attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific hooks by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the hooks
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the hooks |
fn sync(identifier?: string)
Sync hooks state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific hooks by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List hooks resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— Metadata of a Secure Source Manager Hook.
@swamp/gcp/securesourcemanager/repositories-issuesv2026.10.23.1repositories_issues.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| body? | string | Optional. Issue body. Provides a detailed description of the issue. |
| name? | string | Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}` |
| title? | string | Required. Issue title. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a issues
fn get(identifier: string)
Get a issues
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the issues |
fn update(identifier?: string)
Update issues attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific issues by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the issues
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the issues |
fn sync(identifier?: string)
Sync issues state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific issues by name (e.g. one discovered by list) |
fn list(filter?: string, pageSize?: number, maxPages?: number)
List issues resources
| Argument | Type | Description |
|---|---|---|
| filter? | string | Optional. Used to filter the resulting issues list. |
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn close(etag?: any)
close
| Argument | Type | Description |
|---|---|---|
| etag? | any |
fn open(etag?: any)
open
| Argument | Type | Description |
|---|---|---|
| etag? | any |
Resources
state(infinite)— Metadata of an Issue.
@swamp/gcp/securesourcemanager/repositories-issues-issuecommentsv2026.10.23.1repositories_issues_issuecomments.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| body? | string | Required. The comment body. |
| name? | string | Identifier. Unique identifier for an issue comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}` |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a issueComments
fn get(identifier: string)
Get a issueComments
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the issueComments |
fn update(identifier?: string)
Update issueComments attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific issueComments by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the issueComments
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the issueComments |
fn sync(identifier?: string)
Sync issueComments state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific issueComments by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List issueComments resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— IssueComment represents a comment on an issue.
@swamp/gcp/securesourcemanager/repositories-pullrequestsv2026.10.23.1repositories_pullrequests.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| base? | object | Required. The branch to merge changes in. |
| body? | string | Optional. The pull request body. Provides a detailed description of the changes. |
| head? | object | Immutable. The branch containing the changes to be merged. |
| title? | string | Required. The pull request title. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a pullRequests
fn get(identifier: string)
Get a pullRequests
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the pullRequests |
fn update(identifier?: string)
Update pullRequests attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific pullRequests by name (e.g. one discovered by list) |
fn sync(identifier?: string)
Sync pullRequests state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific pullRequests by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List pullRequests resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn close()
close
fn list_file_diffs(pageSize?: any, pageToken?: any)
list file diffs
| Argument | Type | Description |
|---|---|---|
| pageSize? | any | |
| pageToken? | any |
fn merge()
merge
fn open()
open
Resources
state(infinite)— Metadata of a PullRequest. PullRequest is the request from a user to merge a ...
@swamp/gcp/securesourcemanager/repositories-pullrequests-pullrequestcommentsv2026.10.23.1repositories_pullrequests_pullrequestcomments.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials. |
| apiEndpoint? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| code? | object | Optional. The comment on a code line. |
| comment? | object | Optional. The general pull request comment. |
| name? | string | Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}` |
| review? | object | Optional. The review summary comment. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a pullRequestComments
fn get(identifier: string)
Get a pullRequestComments
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the pullRequestComments |
fn update(identifier?: string)
Update pullRequestComments attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific pullRequestComments by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the pullRequestComments
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the pullRequestComments |
fn sync(identifier?: string)
Sync pullRequestComments state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific pullRequestComments by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List pullRequestComments resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn batch_create(requests?: any)
batch create
| Argument | Type | Description |
|---|---|---|
| requests? | any |
fn resolve(autoFill?: any, names?: any)
resolve
| Argument | Type | Description |
|---|---|---|
| autoFill? | any | |
| names? | any |
fn unresolve(autoFill?: any, names?: any)
unresolve
| Argument | Type | Description |
|---|---|---|
| autoFill? | any | |
| names? | any |
Resources
state(infinite)— PullRequestComment represents a comment on a pull request.
04Previous Versions
2026.10.22.1AGPL-3.0-or-later(was none)
- Updated: repositories
2026.10.13.1
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.09.22.1
- Updated: repositories_hooks
2026.09.07.2
- Updated: instances, repositories
2026.08.18.1
- Updated: instances, repositories_hooks
2026.08.12.2
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.29.1
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.21.4
- Updated: locations, repositories
2026.07.21.1
- Updated: instances, repositories, repositories_hooks, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.20.2
- Updated: locations, repositories
Modified 1 behaviors
2026.07.20.1
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
Modified 1 behaviors
2026.07.19.2
- Updated: locations
2026.07.19.1
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.18.2
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.17.2
- Updated: instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.17.1
- Updated: instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
2026.07.08.1
- Updated: repositories
Modified 1 behaviors
2026.06.24.1
- Updated: repositories
2026.06.08.2
- Updated: locations, instances, repositories, repositories_branchrules, repositories_hooks, repositories_issues, repositories_issues_issuecomments, repositories_pullrequests, repositories_pullrequests_pullrequestcomments
05Stats
A
100 / 100
Downloads
35
Archive size
102.9 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 types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
06Platforms
07Labels