@googleapis/dataform 9.1.0 → 11.0.0
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 +158 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/v1beta1.d.ts +416 -637
- package/build/v1beta1.js +122 -166
- package/build/v1beta1.js.map +1 -1
- package/package.json +4 -4
- package/v1beta1.ts +1703 -2098
package/build/v1beta1.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
2
|
import { Readable } from 'stream';
|
|
4
3
|
export declare namespace dataform_v1beta1 {
|
|
@@ -179,21 +178,9 @@ export declare namespace dataform_v1beta1 {
|
|
|
179
178
|
sqlScript?: string | null;
|
|
180
179
|
}
|
|
181
180
|
/**
|
|
182
|
-
*
|
|
181
|
+
* The request message for Operations.CancelOperation.
|
|
183
182
|
*/
|
|
184
|
-
export interface Schema$
|
|
185
|
-
/**
|
|
186
|
-
* 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).
|
|
187
|
-
*/
|
|
188
|
-
condition?: Schema$Expr;
|
|
189
|
-
/**
|
|
190
|
-
* 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. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/group/{group_id\}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/x`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/group/{group_id\}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/x`: All identities in a workload identity pool. * `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. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
|
191
|
-
*/
|
|
192
|
-
members?: string[] | null;
|
|
193
|
-
/**
|
|
194
|
-
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
|
|
195
|
-
*/
|
|
196
|
-
role?: string | null;
|
|
183
|
+
export interface Schema$CancelOperationRequest {
|
|
197
184
|
}
|
|
198
185
|
/**
|
|
199
186
|
* `CancelWorkflowInvocation` request message.
|
|
@@ -612,27 +599,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
612
599
|
*/
|
|
613
600
|
target?: Schema$Target;
|
|
614
601
|
}
|
|
615
|
-
/**
|
|
616
|
-
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
|
|
617
|
-
*/
|
|
618
|
-
export interface Schema$Expr {
|
|
619
|
-
/**
|
|
620
|
-
* Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
|
|
621
|
-
*/
|
|
622
|
-
description?: string | null;
|
|
623
|
-
/**
|
|
624
|
-
* Textual representation of an expression in Common Expression Language syntax.
|
|
625
|
-
*/
|
|
626
|
-
expression?: string | null;
|
|
627
|
-
/**
|
|
628
|
-
* Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
|
|
629
|
-
*/
|
|
630
|
-
location?: string | null;
|
|
631
|
-
/**
|
|
632
|
-
* Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
|
|
633
|
-
*/
|
|
634
|
-
title?: string | null;
|
|
635
|
-
}
|
|
636
602
|
/**
|
|
637
603
|
* `FetchFileDiff` response message.
|
|
638
604
|
*/
|
|
@@ -866,6 +832,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
866
832
|
*/
|
|
867
833
|
nextPageToken?: string | null;
|
|
868
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* The response message for Operations.ListOperations.
|
|
837
|
+
*/
|
|
838
|
+
export interface Schema$ListOperationsResponse {
|
|
839
|
+
/**
|
|
840
|
+
* The standard List next-page token.
|
|
841
|
+
*/
|
|
842
|
+
nextPageToken?: string | null;
|
|
843
|
+
/**
|
|
844
|
+
* A list of operations that matches the specified filter in the request.
|
|
845
|
+
*/
|
|
846
|
+
operations?: Schema$Operation[];
|
|
847
|
+
}
|
|
869
848
|
/**
|
|
870
849
|
* `ListReleaseConfigs` response message.
|
|
871
850
|
*/
|
|
@@ -1098,6 +1077,35 @@ export declare namespace dataform_v1beta1 {
|
|
|
1098
1077
|
*/
|
|
1099
1078
|
gcsOutputBucket?: string | null;
|
|
1100
1079
|
}
|
|
1080
|
+
/**
|
|
1081
|
+
* This resource represents a long-running operation that is the result of a network API call.
|
|
1082
|
+
*/
|
|
1083
|
+
export interface Schema$Operation {
|
|
1084
|
+
/**
|
|
1085
|
+
* If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
|
|
1086
|
+
*/
|
|
1087
|
+
done?: boolean | null;
|
|
1088
|
+
/**
|
|
1089
|
+
* The error result of the operation in case of failure or cancellation.
|
|
1090
|
+
*/
|
|
1091
|
+
error?: Schema$Status;
|
|
1092
|
+
/**
|
|
1093
|
+
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
1094
|
+
*/
|
|
1095
|
+
metadata?: {
|
|
1096
|
+
[key: string]: any;
|
|
1097
|
+
} | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`.
|
|
1100
|
+
*/
|
|
1101
|
+
name?: string | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
1104
|
+
*/
|
|
1105
|
+
response?: {
|
|
1106
|
+
[key: string]: any;
|
|
1107
|
+
} | null;
|
|
1108
|
+
}
|
|
1101
1109
|
/**
|
|
1102
1110
|
* Represents the metadata of the long-running operation.
|
|
1103
1111
|
*/
|
|
@@ -1160,23 +1168,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
1160
1168
|
*/
|
|
1161
1169
|
tags?: string[] | null;
|
|
1162
1170
|
}
|
|
1163
|
-
/**
|
|
1164
|
-
* 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/).
|
|
1165
|
-
*/
|
|
1166
|
-
export interface Schema$Policy {
|
|
1167
|
-
/**
|
|
1168
|
-
* 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`.
|
|
1169
|
-
*/
|
|
1170
|
-
bindings?: Schema$Binding[];
|
|
1171
|
-
/**
|
|
1172
|
-
* `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
|
|
1173
|
-
*/
|
|
1174
|
-
etag?: string | null;
|
|
1175
|
-
/**
|
|
1176
|
-
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
1177
|
-
*/
|
|
1178
|
-
version?: number | null;
|
|
1179
|
-
}
|
|
1180
1171
|
/**
|
|
1181
1172
|
* An internal name for an IAM policy, based on the resource to which the policy applies. Not to be confused with a resource's external full resource name. For more information on this distinction, see go/iam-full-resource-names.
|
|
1182
1173
|
*/
|
|
@@ -1580,15 +1571,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
1580
1571
|
*/
|
|
1581
1572
|
file?: Schema$FileSearchResult;
|
|
1582
1573
|
}
|
|
1583
|
-
/**
|
|
1584
|
-
* Request message for `SetIamPolicy` method.
|
|
1585
|
-
*/
|
|
1586
|
-
export interface Schema$SetIamPolicyRequest {
|
|
1587
|
-
/**
|
|
1588
|
-
* 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.
|
|
1589
|
-
*/
|
|
1590
|
-
policy?: Schema$Policy;
|
|
1591
|
-
}
|
|
1592
1574
|
/**
|
|
1593
1575
|
* Simple load definition
|
|
1594
1576
|
*/
|
|
@@ -1660,24 +1642,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
1660
1642
|
*/
|
|
1661
1643
|
schema?: string | null;
|
|
1662
1644
|
}
|
|
1663
|
-
/**
|
|
1664
|
-
* Request message for `TestIamPermissions` method.
|
|
1665
|
-
*/
|
|
1666
|
-
export interface Schema$TestIamPermissionsRequest {
|
|
1667
|
-
/**
|
|
1668
|
-
* 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).
|
|
1669
|
-
*/
|
|
1670
|
-
permissions?: string[] | null;
|
|
1671
|
-
}
|
|
1672
|
-
/**
|
|
1673
|
-
* Response message for `TestIamPermissions` method.
|
|
1674
|
-
*/
|
|
1675
|
-
export interface Schema$TestIamPermissionsResponse {
|
|
1676
|
-
/**
|
|
1677
|
-
* A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
|
1678
|
-
*/
|
|
1679
|
-
permissions?: string[] | null;
|
|
1680
|
-
}
|
|
1681
1645
|
/**
|
|
1682
1646
|
* Represents the Git state of a file with uncommitted changes.
|
|
1683
1647
|
*/
|
|
@@ -1890,6 +1854,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
1890
1854
|
}
|
|
1891
1855
|
export class Resource$Projects$Locations {
|
|
1892
1856
|
context: APIRequestContext;
|
|
1857
|
+
operations: Resource$Projects$Locations$Operations;
|
|
1893
1858
|
repositories: Resource$Projects$Locations$Repositories;
|
|
1894
1859
|
constructor(context: APIRequestContext);
|
|
1895
1860
|
/**
|
|
@@ -2057,7 +2022,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2057
2022
|
*
|
|
2058
2023
|
* // Do the magic
|
|
2059
2024
|
* const res = await dataform.projects.locations.list({
|
|
2060
|
-
* // Optional.
|
|
2025
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2061
2026
|
* extraLocationTypes: 'placeholder-value',
|
|
2062
2027
|
* // 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).
|
|
2063
2028
|
* filter: 'placeholder-value',
|
|
@@ -2185,7 +2150,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2185
2150
|
}
|
|
2186
2151
|
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
2187
2152
|
/**
|
|
2188
|
-
* Optional.
|
|
2153
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2189
2154
|
*/
|
|
2190
2155
|
extraLocationTypes?: string[];
|
|
2191
2156
|
/**
|
|
@@ -2219,16 +2184,11 @@ export declare namespace dataform_v1beta1 {
|
|
|
2219
2184
|
*/
|
|
2220
2185
|
requestBody?: Schema$Config;
|
|
2221
2186
|
}
|
|
2222
|
-
export class Resource$Projects$Locations$
|
|
2187
|
+
export class Resource$Projects$Locations$Operations {
|
|
2223
2188
|
context: APIRequestContext;
|
|
2224
|
-
compilationResults: Resource$Projects$Locations$Repositories$Compilationresults;
|
|
2225
|
-
releaseConfigs: Resource$Projects$Locations$Repositories$Releaseconfigs;
|
|
2226
|
-
workflowConfigs: Resource$Projects$Locations$Repositories$Workflowconfigs;
|
|
2227
|
-
workflowInvocations: Resource$Projects$Locations$Repositories$Workflowinvocations;
|
|
2228
|
-
workspaces: Resource$Projects$Locations$Repositories$Workspaces;
|
|
2229
2189
|
constructor(context: APIRequestContext);
|
|
2230
2190
|
/**
|
|
2231
|
-
*
|
|
2191
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
|
|
2232
2192
|
* @example
|
|
2233
2193
|
* ```js
|
|
2234
2194
|
* // Before running the sample:
|
|
@@ -2260,26 +2220,20 @@ export declare namespace dataform_v1beta1 {
|
|
|
2260
2220
|
* google.options({auth: authClient});
|
|
2261
2221
|
*
|
|
2262
2222
|
* // Do the magic
|
|
2263
|
-
* const res = await dataform.projects.locations.
|
|
2264
|
-
* //
|
|
2265
|
-
* name: 'projects/my-project/locations/my-location/
|
|
2223
|
+
* const res = await dataform.projects.locations.operations.cancel({
|
|
2224
|
+
* // The name of the operation resource to be cancelled.
|
|
2225
|
+
* name: 'projects/my-project/locations/my-location/operations/my-operation',
|
|
2266
2226
|
*
|
|
2267
2227
|
* // Request body metadata
|
|
2268
2228
|
* requestBody: {
|
|
2269
2229
|
* // request body parameters
|
|
2270
|
-
* // {
|
|
2271
|
-
* // "commitMetadata": {},
|
|
2272
|
-
* // "fileOperations": {},
|
|
2273
|
-
* // "requiredHeadCommitSha": "my_requiredHeadCommitSha"
|
|
2274
|
-
* // }
|
|
2230
|
+
* // {}
|
|
2275
2231
|
* },
|
|
2276
2232
|
* });
|
|
2277
2233
|
* console.log(res.data);
|
|
2278
2234
|
*
|
|
2279
2235
|
* // Example response
|
|
2280
|
-
* // {
|
|
2281
|
-
* // "commitSha": "my_commitSha"
|
|
2282
|
-
* // }
|
|
2236
|
+
* // {}
|
|
2283
2237
|
* }
|
|
2284
2238
|
*
|
|
2285
2239
|
* main().catch(e => {
|
|
@@ -2294,14 +2248,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2294
2248
|
* @param callback - Optional callback that handles the response.
|
|
2295
2249
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2296
2250
|
*/
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2251
|
+
cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2252
|
+
cancel(params?: Params$Resource$Projects$Locations$Operations$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
2253
|
+
cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2254
|
+
cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2255
|
+
cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2256
|
+
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2303
2257
|
/**
|
|
2304
|
-
*
|
|
2258
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
2305
2259
|
* @example
|
|
2306
2260
|
* ```js
|
|
2307
2261
|
* // Before running the sample:
|
|
@@ -2333,17 +2287,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2333
2287
|
* google.options({auth: authClient});
|
|
2334
2288
|
*
|
|
2335
2289
|
* // Do the magic
|
|
2336
|
-
* const res =
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2339
|
-
*
|
|
2340
|
-
* });
|
|
2290
|
+
* const res = await dataform.projects.locations.operations.delete({
|
|
2291
|
+
* // The name of the operation resource to be deleted.
|
|
2292
|
+
* name: 'projects/my-project/locations/my-location/operations/my-operation',
|
|
2293
|
+
* });
|
|
2341
2294
|
* console.log(res.data);
|
|
2342
2295
|
*
|
|
2343
2296
|
* // Example response
|
|
2344
|
-
* // {
|
|
2345
|
-
* // "tokenStatus": "my_tokenStatus"
|
|
2346
|
-
* // }
|
|
2297
|
+
* // {}
|
|
2347
2298
|
* }
|
|
2348
2299
|
*
|
|
2349
2300
|
* main().catch(e => {
|
|
@@ -2358,14 +2309,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2358
2309
|
* @param callback - Optional callback that handles the response.
|
|
2359
2310
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2360
2311
|
*/
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2312
|
+
delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2313
|
+
delete(params?: Params$Resource$Projects$Locations$Operations$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
2314
|
+
delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2315
|
+
delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2316
|
+
delete(params: Params$Resource$Projects$Locations$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2317
|
+
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2367
2318
|
/**
|
|
2368
|
-
*
|
|
2319
|
+
* Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
|
2369
2320
|
* @example
|
|
2370
2321
|
* ```js
|
|
2371
2322
|
* // Before running the sample:
|
|
@@ -2397,47 +2348,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
2397
2348
|
* google.options({auth: authClient});
|
|
2398
2349
|
*
|
|
2399
2350
|
* // Do the magic
|
|
2400
|
-
* const res = await dataform.projects.locations.
|
|
2401
|
-
* //
|
|
2402
|
-
*
|
|
2403
|
-
* // Required. The ID to use for the repository, which will become the final component of the repository's resource name.
|
|
2404
|
-
* repositoryId: 'placeholder-value',
|
|
2405
|
-
*
|
|
2406
|
-
* // Request body metadata
|
|
2407
|
-
* requestBody: {
|
|
2408
|
-
* // request body parameters
|
|
2409
|
-
* // {
|
|
2410
|
-
* // "createTime": "my_createTime",
|
|
2411
|
-
* // "dataEncryptionState": {},
|
|
2412
|
-
* // "displayName": "my_displayName",
|
|
2413
|
-
* // "gitRemoteSettings": {},
|
|
2414
|
-
* // "internalMetadata": "my_internalMetadata",
|
|
2415
|
-
* // "kmsKeyName": "my_kmsKeyName",
|
|
2416
|
-
* // "labels": {},
|
|
2417
|
-
* // "name": "my_name",
|
|
2418
|
-
* // "npmrcEnvironmentVariablesSecretVersion": "my_npmrcEnvironmentVariablesSecretVersion",
|
|
2419
|
-
* // "serviceAccount": "my_serviceAccount",
|
|
2420
|
-
* // "setAuthenticatedUserAdmin": false,
|
|
2421
|
-
* // "workspaceCompilationOverrides": {}
|
|
2422
|
-
* // }
|
|
2423
|
-
* },
|
|
2351
|
+
* const res = await dataform.projects.locations.operations.get({
|
|
2352
|
+
* // The name of the operation resource.
|
|
2353
|
+
* name: 'projects/my-project/locations/my-location/operations/my-operation',
|
|
2424
2354
|
* });
|
|
2425
2355
|
* console.log(res.data);
|
|
2426
2356
|
*
|
|
2427
2357
|
* // Example response
|
|
2428
2358
|
* // {
|
|
2429
|
-
* // "
|
|
2430
|
-
* // "
|
|
2431
|
-
* // "
|
|
2432
|
-
* // "gitRemoteSettings": {},
|
|
2433
|
-
* // "internalMetadata": "my_internalMetadata",
|
|
2434
|
-
* // "kmsKeyName": "my_kmsKeyName",
|
|
2435
|
-
* // "labels": {},
|
|
2359
|
+
* // "done": false,
|
|
2360
|
+
* // "error": {},
|
|
2361
|
+
* // "metadata": {},
|
|
2436
2362
|
* // "name": "my_name",
|
|
2437
|
-
* // "
|
|
2438
|
-
* // "serviceAccount": "my_serviceAccount",
|
|
2439
|
-
* // "setAuthenticatedUserAdmin": false,
|
|
2440
|
-
* // "workspaceCompilationOverrides": {}
|
|
2363
|
+
* // "response": {}
|
|
2441
2364
|
* // }
|
|
2442
2365
|
* }
|
|
2443
2366
|
*
|
|
@@ -2453,14 +2376,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2453
2376
|
* @param callback - Optional callback that handles the response.
|
|
2454
2377
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2455
2378
|
*/
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2379
|
+
get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2380
|
+
get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
2381
|
+
get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2382
|
+
get(params: Params$Resource$Projects$Locations$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2383
|
+
get(params: Params$Resource$Projects$Locations$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2384
|
+
get(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2462
2385
|
/**
|
|
2463
|
-
*
|
|
2386
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
2464
2387
|
* @example
|
|
2465
2388
|
* ```js
|
|
2466
2389
|
* // Before running the sample:
|
|
@@ -2492,16 +2415,23 @@ export declare namespace dataform_v1beta1 {
|
|
|
2492
2415
|
* google.options({auth: authClient});
|
|
2493
2416
|
*
|
|
2494
2417
|
* // Do the magic
|
|
2495
|
-
* const res = await dataform.projects.locations.
|
|
2496
|
-
* //
|
|
2497
|
-
*
|
|
2498
|
-
* //
|
|
2499
|
-
* name: 'projects/my-project/locations/my-location
|
|
2418
|
+
* const res = await dataform.projects.locations.operations.list({
|
|
2419
|
+
* // The standard list filter.
|
|
2420
|
+
* filter: 'placeholder-value',
|
|
2421
|
+
* // The name of the operation's parent resource.
|
|
2422
|
+
* name: 'projects/my-project/locations/my-location',
|
|
2423
|
+
* // The standard list page size.
|
|
2424
|
+
* pageSize: 'placeholder-value',
|
|
2425
|
+
* // The standard list page token.
|
|
2426
|
+
* pageToken: 'placeholder-value',
|
|
2500
2427
|
* });
|
|
2501
2428
|
* console.log(res.data);
|
|
2502
2429
|
*
|
|
2503
2430
|
* // Example response
|
|
2504
|
-
* // {
|
|
2431
|
+
* // {
|
|
2432
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2433
|
+
* // "operations": []
|
|
2434
|
+
* // }
|
|
2505
2435
|
* }
|
|
2506
2436
|
*
|
|
2507
2437
|
* main().catch(e => {
|
|
@@ -2516,14 +2446,63 @@ export declare namespace dataform_v1beta1 {
|
|
|
2516
2446
|
* @param callback - Optional callback that handles the response.
|
|
2517
2447
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2518
2448
|
*/
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2449
|
+
list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2450
|
+
list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
|
|
2451
|
+
list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2452
|
+
list(params: Params$Resource$Projects$Locations$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
|
|
2453
|
+
list(params: Params$Resource$Projects$Locations$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
|
|
2454
|
+
list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
|
|
2455
|
+
}
|
|
2456
|
+
export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters {
|
|
2525
2457
|
/**
|
|
2526
|
-
*
|
|
2458
|
+
* The name of the operation resource to be cancelled.
|
|
2459
|
+
*/
|
|
2460
|
+
name?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* Request body metadata
|
|
2463
|
+
*/
|
|
2464
|
+
requestBody?: Schema$CancelOperationRequest;
|
|
2465
|
+
}
|
|
2466
|
+
export interface Params$Resource$Projects$Locations$Operations$Delete extends StandardParameters {
|
|
2467
|
+
/**
|
|
2468
|
+
* The name of the operation resource to be deleted.
|
|
2469
|
+
*/
|
|
2470
|
+
name?: string;
|
|
2471
|
+
}
|
|
2472
|
+
export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters {
|
|
2473
|
+
/**
|
|
2474
|
+
* The name of the operation resource.
|
|
2475
|
+
*/
|
|
2476
|
+
name?: string;
|
|
2477
|
+
}
|
|
2478
|
+
export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters {
|
|
2479
|
+
/**
|
|
2480
|
+
* The standard list filter.
|
|
2481
|
+
*/
|
|
2482
|
+
filter?: string;
|
|
2483
|
+
/**
|
|
2484
|
+
* The name of the operation's parent resource.
|
|
2485
|
+
*/
|
|
2486
|
+
name?: string;
|
|
2487
|
+
/**
|
|
2488
|
+
* The standard list page size.
|
|
2489
|
+
*/
|
|
2490
|
+
pageSize?: number;
|
|
2491
|
+
/**
|
|
2492
|
+
* The standard list page token.
|
|
2493
|
+
*/
|
|
2494
|
+
pageToken?: string;
|
|
2495
|
+
}
|
|
2496
|
+
export class Resource$Projects$Locations$Repositories {
|
|
2497
|
+
context: APIRequestContext;
|
|
2498
|
+
compilationResults: Resource$Projects$Locations$Repositories$Compilationresults;
|
|
2499
|
+
releaseConfigs: Resource$Projects$Locations$Repositories$Releaseconfigs;
|
|
2500
|
+
workflowConfigs: Resource$Projects$Locations$Repositories$Workflowconfigs;
|
|
2501
|
+
workflowInvocations: Resource$Projects$Locations$Repositories$Workflowinvocations;
|
|
2502
|
+
workspaces: Resource$Projects$Locations$Repositories$Workspaces;
|
|
2503
|
+
constructor(context: APIRequestContext);
|
|
2504
|
+
/**
|
|
2505
|
+
* Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.
|
|
2527
2506
|
* @example
|
|
2528
2507
|
* ```js
|
|
2529
2508
|
* // Before running the sample:
|
|
@@ -2555,20 +2534,25 @@ export declare namespace dataform_v1beta1 {
|
|
|
2555
2534
|
* google.options({auth: authClient});
|
|
2556
2535
|
*
|
|
2557
2536
|
* // Do the magic
|
|
2558
|
-
* const res = await dataform.projects.locations.repositories.
|
|
2537
|
+
* const res = await dataform.projects.locations.repositories.commit({
|
|
2559
2538
|
* // Required. The repository's name.
|
|
2560
2539
|
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2561
|
-
*
|
|
2562
|
-
*
|
|
2563
|
-
*
|
|
2564
|
-
*
|
|
2540
|
+
*
|
|
2541
|
+
* // Request body metadata
|
|
2542
|
+
* requestBody: {
|
|
2543
|
+
* // request body parameters
|
|
2544
|
+
* // {
|
|
2545
|
+
* // "commitMetadata": {},
|
|
2546
|
+
* // "fileOperations": {},
|
|
2547
|
+
* // "requiredHeadCommitSha": "my_requiredHeadCommitSha"
|
|
2548
|
+
* // }
|
|
2549
|
+
* },
|
|
2565
2550
|
* });
|
|
2566
2551
|
* console.log(res.data);
|
|
2567
2552
|
*
|
|
2568
2553
|
* // Example response
|
|
2569
2554
|
* // {
|
|
2570
|
-
* // "
|
|
2571
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
2555
|
+
* // "commitSha": "my_commitSha"
|
|
2572
2556
|
* // }
|
|
2573
2557
|
* }
|
|
2574
2558
|
*
|
|
@@ -2584,14 +2568,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2584
2568
|
* @param callback - Optional callback that handles the response.
|
|
2585
2569
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2586
2570
|
*/
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2571
|
+
commit(params: Params$Resource$Projects$Locations$Repositories$Commit, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2572
|
+
commit(params?: Params$Resource$Projects$Locations$Repositories$Commit, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$CommitRepositoryChangesResponse>>;
|
|
2573
|
+
commit(params: Params$Resource$Projects$Locations$Repositories$Commit, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2574
|
+
commit(params: Params$Resource$Projects$Locations$Repositories$Commit, options: MethodOptions | BodyResponseCallback<Schema$CommitRepositoryChangesResponse>, callback: BodyResponseCallback<Schema$CommitRepositoryChangesResponse>): void;
|
|
2575
|
+
commit(params: Params$Resource$Projects$Locations$Repositories$Commit, callback: BodyResponseCallback<Schema$CommitRepositoryChangesResponse>): void;
|
|
2576
|
+
commit(callback: BodyResponseCallback<Schema$CommitRepositoryChangesResponse>): void;
|
|
2593
2577
|
/**
|
|
2594
|
-
*
|
|
2578
|
+
* Computes a Repository's Git access token status.
|
|
2595
2579
|
* @example
|
|
2596
2580
|
* ```js
|
|
2597
2581
|
* // Before running the sample:
|
|
@@ -2624,7 +2608,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2624
2608
|
*
|
|
2625
2609
|
* // Do the magic
|
|
2626
2610
|
* const res =
|
|
2627
|
-
* await dataform.projects.locations.repositories.
|
|
2611
|
+
* await dataform.projects.locations.repositories.computeAccessTokenStatus({
|
|
2628
2612
|
* // Required. The repository's name.
|
|
2629
2613
|
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2630
2614
|
* });
|
|
@@ -2632,7 +2616,7 @@ export declare namespace dataform_v1beta1 {
|
|
|
2632
2616
|
*
|
|
2633
2617
|
* // Example response
|
|
2634
2618
|
* // {
|
|
2635
|
-
* // "
|
|
2619
|
+
* // "tokenStatus": "my_tokenStatus"
|
|
2636
2620
|
* // }
|
|
2637
2621
|
* }
|
|
2638
2622
|
*
|
|
@@ -2648,14 +2632,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2648
2632
|
* @param callback - Optional callback that handles the response.
|
|
2649
2633
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2650
2634
|
*/
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2635
|
+
computeAccessTokenStatus(params: Params$Resource$Projects$Locations$Repositories$Computeaccesstokenstatus, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2636
|
+
computeAccessTokenStatus(params?: Params$Resource$Projects$Locations$Repositories$Computeaccesstokenstatus, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ComputeRepositoryAccessTokenStatusResponse>>;
|
|
2637
|
+
computeAccessTokenStatus(params: Params$Resource$Projects$Locations$Repositories$Computeaccesstokenstatus, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2638
|
+
computeAccessTokenStatus(params: Params$Resource$Projects$Locations$Repositories$Computeaccesstokenstatus, options: MethodOptions | BodyResponseCallback<Schema$ComputeRepositoryAccessTokenStatusResponse>, callback: BodyResponseCallback<Schema$ComputeRepositoryAccessTokenStatusResponse>): void;
|
|
2639
|
+
computeAccessTokenStatus(params: Params$Resource$Projects$Locations$Repositories$Computeaccesstokenstatus, callback: BodyResponseCallback<Schema$ComputeRepositoryAccessTokenStatusResponse>): void;
|
|
2640
|
+
computeAccessTokenStatus(callback: BodyResponseCallback<Schema$ComputeRepositoryAccessTokenStatusResponse>): void;
|
|
2657
2641
|
/**
|
|
2658
|
-
*
|
|
2642
|
+
* Creates a new Repository in a given project and location.
|
|
2659
2643
|
* @example
|
|
2660
2644
|
* ```js
|
|
2661
2645
|
* // Before running the sample:
|
|
@@ -2687,9 +2671,30 @@ export declare namespace dataform_v1beta1 {
|
|
|
2687
2671
|
* google.options({auth: authClient});
|
|
2688
2672
|
*
|
|
2689
2673
|
* // Do the magic
|
|
2690
|
-
* const res = await dataform.projects.locations.repositories.
|
|
2691
|
-
* // Required. The repository
|
|
2692
|
-
*
|
|
2674
|
+
* const res = await dataform.projects.locations.repositories.create({
|
|
2675
|
+
* // Required. The location in which to create the repository. Must be in the format `projects/x/locations/x`.
|
|
2676
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2677
|
+
* // Required. The ID to use for the repository, which will become the final component of the repository's resource name.
|
|
2678
|
+
* repositoryId: 'placeholder-value',
|
|
2679
|
+
*
|
|
2680
|
+
* // Request body metadata
|
|
2681
|
+
* requestBody: {
|
|
2682
|
+
* // request body parameters
|
|
2683
|
+
* // {
|
|
2684
|
+
* // "createTime": "my_createTime",
|
|
2685
|
+
* // "dataEncryptionState": {},
|
|
2686
|
+
* // "displayName": "my_displayName",
|
|
2687
|
+
* // "gitRemoteSettings": {},
|
|
2688
|
+
* // "internalMetadata": "my_internalMetadata",
|
|
2689
|
+
* // "kmsKeyName": "my_kmsKeyName",
|
|
2690
|
+
* // "labels": {},
|
|
2691
|
+
* // "name": "my_name",
|
|
2692
|
+
* // "npmrcEnvironmentVariablesSecretVersion": "my_npmrcEnvironmentVariablesSecretVersion",
|
|
2693
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
2694
|
+
* // "setAuthenticatedUserAdmin": false,
|
|
2695
|
+
* // "workspaceCompilationOverrides": {}
|
|
2696
|
+
* // }
|
|
2697
|
+
* },
|
|
2693
2698
|
* });
|
|
2694
2699
|
* console.log(res.data);
|
|
2695
2700
|
*
|
|
@@ -2722,14 +2727,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2722
2727
|
* @param callback - Optional callback that handles the response.
|
|
2723
2728
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2724
2729
|
*/
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2730
|
+
create(params: Params$Resource$Projects$Locations$Repositories$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2731
|
+
create(params?: Params$Resource$Projects$Locations$Repositories$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Repository>>;
|
|
2732
|
+
create(params: Params$Resource$Projects$Locations$Repositories$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2733
|
+
create(params: Params$Resource$Projects$Locations$Repositories$Create, options: MethodOptions | BodyResponseCallback<Schema$Repository>, callback: BodyResponseCallback<Schema$Repository>): void;
|
|
2734
|
+
create(params: Params$Resource$Projects$Locations$Repositories$Create, callback: BodyResponseCallback<Schema$Repository>): void;
|
|
2735
|
+
create(callback: BodyResponseCallback<Schema$Repository>): void;
|
|
2731
2736
|
/**
|
|
2732
|
-
*
|
|
2737
|
+
* Deletes a single Repository.
|
|
2733
2738
|
* @example
|
|
2734
2739
|
* ```js
|
|
2735
2740
|
* // Before running the sample:
|
|
@@ -2761,21 +2766,16 @@ export declare namespace dataform_v1beta1 {
|
|
|
2761
2766
|
* google.options({auth: authClient});
|
|
2762
2767
|
*
|
|
2763
2768
|
* // Do the magic
|
|
2764
|
-
* const res = await dataform.projects.locations.repositories.
|
|
2765
|
-
* // Optional.
|
|
2766
|
-
*
|
|
2767
|
-
* //
|
|
2768
|
-
*
|
|
2769
|
-
* 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2769
|
+
* const res = await dataform.projects.locations.repositories.delete({
|
|
2770
|
+
* // Optional. If set to true, child resources of this repository (compilation results and workflow invocations) will also be deleted. Otherwise, the request will only succeed if the repository has no child resources. **Note:** *This flag doesn't support deletion of workspaces, release configs or workflow configs. If any of such resources exists in the repository, the request will fail.*.
|
|
2771
|
+
* force: 'placeholder-value',
|
|
2772
|
+
* // Required. The repository's name.
|
|
2773
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2770
2774
|
* });
|
|
2771
2775
|
* console.log(res.data);
|
|
2772
2776
|
*
|
|
2773
2777
|
* // Example response
|
|
2774
|
-
* // {
|
|
2775
|
-
* // "bindings": [],
|
|
2776
|
-
* // "etag": "my_etag",
|
|
2777
|
-
* // "version": 0
|
|
2778
|
-
* // }
|
|
2778
|
+
* // {}
|
|
2779
2779
|
* }
|
|
2780
2780
|
*
|
|
2781
2781
|
* main().catch(e => {
|
|
@@ -2790,14 +2790,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2790
2790
|
* @param callback - Optional callback that handles the response.
|
|
2791
2791
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2792
2792
|
*/
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2793
|
+
delete(params: Params$Resource$Projects$Locations$Repositories$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2794
|
+
delete(params?: Params$Resource$Projects$Locations$Repositories$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
2795
|
+
delete(params: Params$Resource$Projects$Locations$Repositories$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2796
|
+
delete(params: Params$Resource$Projects$Locations$Repositories$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2797
|
+
delete(params: Params$Resource$Projects$Locations$Repositories$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2798
|
+
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2799
2799
|
/**
|
|
2800
|
-
*
|
|
2800
|
+
* Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.
|
|
2801
2801
|
* @example
|
|
2802
2802
|
* ```js
|
|
2803
2803
|
* // Before running the sample:
|
|
@@ -2829,25 +2829,20 @@ export declare namespace dataform_v1beta1 {
|
|
|
2829
2829
|
* google.options({auth: authClient});
|
|
2830
2830
|
*
|
|
2831
2831
|
* // Do the magic
|
|
2832
|
-
* const res = await dataform.projects.locations.repositories.
|
|
2833
|
-
* //
|
|
2834
|
-
*
|
|
2835
|
-
* // Optional.
|
|
2836
|
-
* orderBy: 'placeholder-value',
|
|
2837
|
-
* // Optional. Maximum number of repositories to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
2832
|
+
* const res = await dataform.projects.locations.repositories.fetchHistory({
|
|
2833
|
+
* // Required. The repository's name.
|
|
2834
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2835
|
+
* // Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
2838
2836
|
* pageSize: 'placeholder-value',
|
|
2839
|
-
* // Optional. Page token received from a previous `
|
|
2837
|
+
* // Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchRepositoryHistory`, with the exception of `page_size`, must match the call that provided the page token.
|
|
2840
2838
|
* pageToken: 'placeholder-value',
|
|
2841
|
-
* // Required. The location in which to list repositories. Must be in the format `projects/x/locations/x`.
|
|
2842
|
-
* parent: 'projects/my-project/locations/my-location',
|
|
2843
2839
|
* });
|
|
2844
2840
|
* console.log(res.data);
|
|
2845
2841
|
*
|
|
2846
2842
|
* // Example response
|
|
2847
2843
|
* // {
|
|
2848
|
-
* // "
|
|
2849
|
-
* // "
|
|
2850
|
-
* // "unreachable": []
|
|
2844
|
+
* // "commits": [],
|
|
2845
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2851
2846
|
* // }
|
|
2852
2847
|
* }
|
|
2853
2848
|
*
|
|
@@ -2863,14 +2858,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2863
2858
|
* @param callback - Optional callback that handles the response.
|
|
2864
2859
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2865
2860
|
*/
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2861
|
+
fetchHistory(params: Params$Resource$Projects$Locations$Repositories$Fetchhistory, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2862
|
+
fetchHistory(params?: Params$Resource$Projects$Locations$Repositories$Fetchhistory, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchRepositoryHistoryResponse>>;
|
|
2863
|
+
fetchHistory(params: Params$Resource$Projects$Locations$Repositories$Fetchhistory, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2864
|
+
fetchHistory(params: Params$Resource$Projects$Locations$Repositories$Fetchhistory, options: MethodOptions | BodyResponseCallback<Schema$FetchRepositoryHistoryResponse>, callback: BodyResponseCallback<Schema$FetchRepositoryHistoryResponse>): void;
|
|
2865
|
+
fetchHistory(params: Params$Resource$Projects$Locations$Repositories$Fetchhistory, callback: BodyResponseCallback<Schema$FetchRepositoryHistoryResponse>): void;
|
|
2866
|
+
fetchHistory(callback: BodyResponseCallback<Schema$FetchRepositoryHistoryResponse>): void;
|
|
2872
2867
|
/**
|
|
2873
|
-
*
|
|
2868
|
+
* Fetches a Repository's remote branches.
|
|
2874
2869
|
* @example
|
|
2875
2870
|
* ```js
|
|
2876
2871
|
* // Before running the sample:
|
|
@@ -2902,30 +2897,73 @@ export declare namespace dataform_v1beta1 {
|
|
|
2902
2897
|
* google.options({auth: authClient});
|
|
2903
2898
|
*
|
|
2904
2899
|
* // Do the magic
|
|
2905
|
-
* const res =
|
|
2906
|
-
*
|
|
2907
|
-
*
|
|
2908
|
-
*
|
|
2909
|
-
*
|
|
2900
|
+
* const res =
|
|
2901
|
+
* await dataform.projects.locations.repositories.fetchRemoteBranches({
|
|
2902
|
+
* // Required. The repository's name.
|
|
2903
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2904
|
+
* });
|
|
2905
|
+
* console.log(res.data);
|
|
2910
2906
|
*
|
|
2911
|
-
*
|
|
2912
|
-
*
|
|
2913
|
-
*
|
|
2914
|
-
*
|
|
2915
|
-
*
|
|
2916
|
-
*
|
|
2917
|
-
*
|
|
2918
|
-
*
|
|
2919
|
-
*
|
|
2920
|
-
*
|
|
2921
|
-
*
|
|
2922
|
-
*
|
|
2923
|
-
*
|
|
2924
|
-
*
|
|
2925
|
-
*
|
|
2926
|
-
*
|
|
2927
|
-
*
|
|
2928
|
-
|
|
2907
|
+
* // Example response
|
|
2908
|
+
* // {
|
|
2909
|
+
* // "branches": []
|
|
2910
|
+
* // }
|
|
2911
|
+
* }
|
|
2912
|
+
*
|
|
2913
|
+
* main().catch(e => {
|
|
2914
|
+
* console.error(e);
|
|
2915
|
+
* throw e;
|
|
2916
|
+
* });
|
|
2917
|
+
*
|
|
2918
|
+
* ```
|
|
2919
|
+
*
|
|
2920
|
+
* @param params - Parameters for request
|
|
2921
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2922
|
+
* @param callback - Optional callback that handles the response.
|
|
2923
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2924
|
+
*/
|
|
2925
|
+
fetchRemoteBranches(params: Params$Resource$Projects$Locations$Repositories$Fetchremotebranches, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2926
|
+
fetchRemoteBranches(params?: Params$Resource$Projects$Locations$Repositories$Fetchremotebranches, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchRemoteBranchesResponse>>;
|
|
2927
|
+
fetchRemoteBranches(params: Params$Resource$Projects$Locations$Repositories$Fetchremotebranches, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2928
|
+
fetchRemoteBranches(params: Params$Resource$Projects$Locations$Repositories$Fetchremotebranches, options: MethodOptions | BodyResponseCallback<Schema$FetchRemoteBranchesResponse>, callback: BodyResponseCallback<Schema$FetchRemoteBranchesResponse>): void;
|
|
2929
|
+
fetchRemoteBranches(params: Params$Resource$Projects$Locations$Repositories$Fetchremotebranches, callback: BodyResponseCallback<Schema$FetchRemoteBranchesResponse>): void;
|
|
2930
|
+
fetchRemoteBranches(callback: BodyResponseCallback<Schema$FetchRemoteBranchesResponse>): void;
|
|
2931
|
+
/**
|
|
2932
|
+
* Fetches a single Repository.
|
|
2933
|
+
* @example
|
|
2934
|
+
* ```js
|
|
2935
|
+
* // Before running the sample:
|
|
2936
|
+
* // - Enable the API at:
|
|
2937
|
+
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
2938
|
+
* // - Login into gcloud by running:
|
|
2939
|
+
* // ```sh
|
|
2940
|
+
* // $ gcloud auth application-default login
|
|
2941
|
+
* // ```
|
|
2942
|
+
* // - Install the npm module by running:
|
|
2943
|
+
* // ```sh
|
|
2944
|
+
* // $ npm install googleapis
|
|
2945
|
+
* // ```
|
|
2946
|
+
*
|
|
2947
|
+
* const {google} = require('googleapis');
|
|
2948
|
+
* const dataform = google.dataform('v1beta1');
|
|
2949
|
+
*
|
|
2950
|
+
* async function main() {
|
|
2951
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2952
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2953
|
+
* scopes: [
|
|
2954
|
+
* 'https://www.googleapis.com/auth/bigquery',
|
|
2955
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2956
|
+
* ],
|
|
2957
|
+
* });
|
|
2958
|
+
*
|
|
2959
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2960
|
+
* const authClient = await auth.getClient();
|
|
2961
|
+
* google.options({auth: authClient});
|
|
2962
|
+
*
|
|
2963
|
+
* // Do the magic
|
|
2964
|
+
* const res = await dataform.projects.locations.repositories.get({
|
|
2965
|
+
* // Required. The repository's name.
|
|
2966
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
2929
2967
|
* });
|
|
2930
2968
|
* console.log(res.data);
|
|
2931
2969
|
*
|
|
@@ -2958,14 +2996,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
2958
2996
|
* @param callback - Optional callback that handles the response.
|
|
2959
2997
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2960
2998
|
*/
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2999
|
+
get(params: Params$Resource$Projects$Locations$Repositories$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3000
|
+
get(params?: Params$Resource$Projects$Locations$Repositories$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Repository>>;
|
|
3001
|
+
get(params: Params$Resource$Projects$Locations$Repositories$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3002
|
+
get(params: Params$Resource$Projects$Locations$Repositories$Get, options: MethodOptions | BodyResponseCallback<Schema$Repository>, callback: BodyResponseCallback<Schema$Repository>): void;
|
|
3003
|
+
get(params: Params$Resource$Projects$Locations$Repositories$Get, callback: BodyResponseCallback<Schema$Repository>): void;
|
|
3004
|
+
get(callback: BodyResponseCallback<Schema$Repository>): void;
|
|
2967
3005
|
/**
|
|
2968
|
-
*
|
|
3006
|
+
* Lists Repositories in a given project and location. **Note:** *This method can return repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*.
|
|
2969
3007
|
* @example
|
|
2970
3008
|
* ```js
|
|
2971
3009
|
* // Before running the sample:
|
|
@@ -2997,25 +3035,25 @@ export declare namespace dataform_v1beta1 {
|
|
|
2997
3035
|
* google.options({auth: authClient});
|
|
2998
3036
|
*
|
|
2999
3037
|
* // Do the magic
|
|
3000
|
-
* const res =
|
|
3001
|
-
*
|
|
3002
|
-
*
|
|
3003
|
-
*
|
|
3004
|
-
*
|
|
3005
|
-
*
|
|
3006
|
-
*
|
|
3007
|
-
*
|
|
3008
|
-
*
|
|
3009
|
-
*
|
|
3010
|
-
*
|
|
3011
|
-
*
|
|
3012
|
-
* });
|
|
3038
|
+
* const res = await dataform.projects.locations.repositories.list({
|
|
3039
|
+
* // Optional. Filter for the returned list.
|
|
3040
|
+
* filter: 'placeholder-value',
|
|
3041
|
+
* // Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.
|
|
3042
|
+
* orderBy: 'placeholder-value',
|
|
3043
|
+
* // Optional. Maximum number of repositories to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
3044
|
+
* pageSize: 'placeholder-value',
|
|
3045
|
+
* // Optional. Page token received from a previous `ListRepositories` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepositories`, with the exception of `page_size`, must match the call that provided the page token.
|
|
3046
|
+
* pageToken: 'placeholder-value',
|
|
3047
|
+
* // Required. The location in which to list repositories. Must be in the format `projects/x/locations/x`.
|
|
3048
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3049
|
+
* });
|
|
3013
3050
|
* console.log(res.data);
|
|
3014
3051
|
*
|
|
3015
3052
|
* // Example response
|
|
3016
3053
|
* // {
|
|
3017
|
-
* // "
|
|
3018
|
-
* // "
|
|
3054
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3055
|
+
* // "repositories": [],
|
|
3056
|
+
* // "unreachable": []
|
|
3019
3057
|
* // }
|
|
3020
3058
|
* }
|
|
3021
3059
|
*
|
|
@@ -3031,14 +3069,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
3031
3069
|
* @param callback - Optional callback that handles the response.
|
|
3032
3070
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3033
3071
|
*/
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3072
|
+
list(params: Params$Resource$Projects$Locations$Repositories$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3073
|
+
list(params?: Params$Resource$Projects$Locations$Repositories$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListRepositoriesResponse>>;
|
|
3074
|
+
list(params: Params$Resource$Projects$Locations$Repositories$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3075
|
+
list(params: Params$Resource$Projects$Locations$Repositories$List, options: MethodOptions | BodyResponseCallback<Schema$ListRepositoriesResponse>, callback: BodyResponseCallback<Schema$ListRepositoriesResponse>): void;
|
|
3076
|
+
list(params: Params$Resource$Projects$Locations$Repositories$List, callback: BodyResponseCallback<Schema$ListRepositoriesResponse>): void;
|
|
3077
|
+
list(callback: BodyResponseCallback<Schema$ListRepositoriesResponse>): void;
|
|
3040
3078
|
/**
|
|
3041
|
-
*
|
|
3079
|
+
* Updates a single Repository. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*
|
|
3042
3080
|
* @example
|
|
3043
3081
|
* ```js
|
|
3044
3082
|
* // Before running the sample:
|
|
@@ -3070,19 +3108,47 @@ export declare namespace dataform_v1beta1 {
|
|
|
3070
3108
|
* google.options({auth: authClient});
|
|
3071
3109
|
*
|
|
3072
3110
|
* // Do the magic
|
|
3073
|
-
* const res = await dataform.projects.locations.repositories.
|
|
3074
|
-
* //
|
|
3075
|
-
* commitSha: 'placeholder-value',
|
|
3076
|
-
* // Required. The repository's name.
|
|
3111
|
+
* const res = await dataform.projects.locations.repositories.patch({
|
|
3112
|
+
* // Identifier. The repository's name.
|
|
3077
3113
|
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
3078
|
-
* //
|
|
3079
|
-
*
|
|
3114
|
+
* // Optional. Specifies the fields to be updated in the repository. If left unset, all fields will be updated.
|
|
3115
|
+
* updateMask: 'placeholder-value',
|
|
3116
|
+
*
|
|
3117
|
+
* // Request body metadata
|
|
3118
|
+
* requestBody: {
|
|
3119
|
+
* // request body parameters
|
|
3120
|
+
* // {
|
|
3121
|
+
* // "createTime": "my_createTime",
|
|
3122
|
+
* // "dataEncryptionState": {},
|
|
3123
|
+
* // "displayName": "my_displayName",
|
|
3124
|
+
* // "gitRemoteSettings": {},
|
|
3125
|
+
* // "internalMetadata": "my_internalMetadata",
|
|
3126
|
+
* // "kmsKeyName": "my_kmsKeyName",
|
|
3127
|
+
* // "labels": {},
|
|
3128
|
+
* // "name": "my_name",
|
|
3129
|
+
* // "npmrcEnvironmentVariablesSecretVersion": "my_npmrcEnvironmentVariablesSecretVersion",
|
|
3130
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
3131
|
+
* // "setAuthenticatedUserAdmin": false,
|
|
3132
|
+
* // "workspaceCompilationOverrides": {}
|
|
3133
|
+
* // }
|
|
3134
|
+
* },
|
|
3080
3135
|
* });
|
|
3081
3136
|
* console.log(res.data);
|
|
3082
3137
|
*
|
|
3083
3138
|
* // Example response
|
|
3084
3139
|
* // {
|
|
3085
|
-
* // "
|
|
3140
|
+
* // "createTime": "my_createTime",
|
|
3141
|
+
* // "dataEncryptionState": {},
|
|
3142
|
+
* // "displayName": "my_displayName",
|
|
3143
|
+
* // "gitRemoteSettings": {},
|
|
3144
|
+
* // "internalMetadata": "my_internalMetadata",
|
|
3145
|
+
* // "kmsKeyName": "my_kmsKeyName",
|
|
3146
|
+
* // "labels": {},
|
|
3147
|
+
* // "name": "my_name",
|
|
3148
|
+
* // "npmrcEnvironmentVariablesSecretVersion": "my_npmrcEnvironmentVariablesSecretVersion",
|
|
3149
|
+
* // "serviceAccount": "my_serviceAccount",
|
|
3150
|
+
* // "setAuthenticatedUserAdmin": false,
|
|
3151
|
+
* // "workspaceCompilationOverrides": {}
|
|
3086
3152
|
* // }
|
|
3087
3153
|
* }
|
|
3088
3154
|
*
|
|
@@ -3098,14 +3164,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
3098
3164
|
* @param callback - Optional callback that handles the response.
|
|
3099
3165
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3100
3166
|
*/
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3167
|
+
patch(params: Params$Resource$Projects$Locations$Repositories$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3168
|
+
patch(params?: Params$Resource$Projects$Locations$Repositories$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Repository>>;
|
|
3169
|
+
patch(params: Params$Resource$Projects$Locations$Repositories$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3170
|
+
patch(params: Params$Resource$Projects$Locations$Repositories$Patch, options: MethodOptions | BodyResponseCallback<Schema$Repository>, callback: BodyResponseCallback<Schema$Repository>): void;
|
|
3171
|
+
patch(params: Params$Resource$Projects$Locations$Repositories$Patch, callback: BodyResponseCallback<Schema$Repository>): void;
|
|
3172
|
+
patch(callback: BodyResponseCallback<Schema$Repository>): void;
|
|
3107
3173
|
/**
|
|
3108
|
-
*
|
|
3174
|
+
* Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`.
|
|
3109
3175
|
* @example
|
|
3110
3176
|
* ```js
|
|
3111
3177
|
* // Before running the sample:
|
|
@@ -3137,26 +3203,25 @@ export declare namespace dataform_v1beta1 {
|
|
|
3137
3203
|
* google.options({auth: authClient});
|
|
3138
3204
|
*
|
|
3139
3205
|
* // Do the magic
|
|
3140
|
-
* const res =
|
|
3141
|
-
*
|
|
3142
|
-
*
|
|
3143
|
-
* '
|
|
3144
|
-
*
|
|
3145
|
-
*
|
|
3146
|
-
*
|
|
3147
|
-
*
|
|
3148
|
-
* //
|
|
3149
|
-
*
|
|
3150
|
-
* //
|
|
3151
|
-
*
|
|
3152
|
-
*
|
|
3206
|
+
* const res =
|
|
3207
|
+
* await dataform.projects.locations.repositories.queryDirectoryContents({
|
|
3208
|
+
* // Optional. The Commit SHA for the commit to query from. If unset, the directory will be queried from HEAD.
|
|
3209
|
+
* commitSha: 'placeholder-value',
|
|
3210
|
+
* // Required. The repository's name.
|
|
3211
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
3212
|
+
* // Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
|
|
3213
|
+
* pageSize: 'placeholder-value',
|
|
3214
|
+
* // Optional. Page token received from a previous `QueryRepositoryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must match the call that provided the page token.
|
|
3215
|
+
* pageToken: 'placeholder-value',
|
|
3216
|
+
* // Optional. The directory's full path including directory name, relative to root. If left unset, the root is used.
|
|
3217
|
+
* path: 'placeholder-value',
|
|
3218
|
+
* });
|
|
3153
3219
|
* console.log(res.data);
|
|
3154
3220
|
*
|
|
3155
3221
|
* // Example response
|
|
3156
3222
|
* // {
|
|
3157
|
-
* // "
|
|
3158
|
-
* // "
|
|
3159
|
-
* // "version": 0
|
|
3223
|
+
* // "directoryEntries": [],
|
|
3224
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
3160
3225
|
* // }
|
|
3161
3226
|
* }
|
|
3162
3227
|
*
|
|
@@ -3172,14 +3237,14 @@ export declare namespace dataform_v1beta1 {
|
|
|
3172
3237
|
* @param callback - Optional callback that handles the response.
|
|
3173
3238
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3174
3239
|
*/
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3240
|
+
queryDirectoryContents(params: Params$Resource$Projects$Locations$Repositories$Querydirectorycontents, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3241
|
+
queryDirectoryContents(params?: Params$Resource$Projects$Locations$Repositories$Querydirectorycontents, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$QueryRepositoryDirectoryContentsResponse>>;
|
|
3242
|
+
queryDirectoryContents(params: Params$Resource$Projects$Locations$Repositories$Querydirectorycontents, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3243
|
+
queryDirectoryContents(params: Params$Resource$Projects$Locations$Repositories$Querydirectorycontents, options: MethodOptions | BodyResponseCallback<Schema$QueryRepositoryDirectoryContentsResponse>, callback: BodyResponseCallback<Schema$QueryRepositoryDirectoryContentsResponse>): void;
|
|
3244
|
+
queryDirectoryContents(params: Params$Resource$Projects$Locations$Repositories$Querydirectorycontents, callback: BodyResponseCallback<Schema$QueryRepositoryDirectoryContentsResponse>): void;
|
|
3245
|
+
queryDirectoryContents(callback: BodyResponseCallback<Schema$QueryRepositoryDirectoryContentsResponse>): void;
|
|
3181
3246
|
/**
|
|
3182
|
-
* Returns
|
|
3247
|
+
* Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`.
|
|
3183
3248
|
* @example
|
|
3184
3249
|
* ```js
|
|
3185
3250
|
* // Before running the sample:
|
|
@@ -3211,26 +3276,19 @@ export declare namespace dataform_v1beta1 {
|
|
|
3211
3276
|
* google.options({auth: authClient});
|
|
3212
3277
|
*
|
|
3213
3278
|
* // Do the magic
|
|
3214
|
-
* const res = await dataform.projects.locations.repositories.
|
|
3215
|
-
*
|
|
3216
|
-
*
|
|
3217
|
-
*
|
|
3218
|
-
*
|
|
3219
|
-
*
|
|
3220
|
-
*
|
|
3221
|
-
*
|
|
3222
|
-
* // request body parameters
|
|
3223
|
-
* // {
|
|
3224
|
-
* // "permissions": []
|
|
3225
|
-
* // }
|
|
3226
|
-
* },
|
|
3227
|
-
* },
|
|
3228
|
-
* );
|
|
3279
|
+
* const res = await dataform.projects.locations.repositories.readFile({
|
|
3280
|
+
* // Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD.
|
|
3281
|
+
* commitSha: 'placeholder-value',
|
|
3282
|
+
* // Required. The repository's name.
|
|
3283
|
+
* name: 'projects/my-project/locations/my-location/repositories/my-repositorie',
|
|
3284
|
+
* // Required. Full file path to read including filename, from repository root.
|
|
3285
|
+
* path: 'placeholder-value',
|
|
3286
|
+
* });
|
|
3229
3287
|
* console.log(res.data);
|
|
3230
3288
|
*
|
|
3231
3289
|
* // Example response
|
|
3232
3290
|
* // {
|
|
3233
|
-
* // "
|
|
3291
|
+
* // "contents": "my_contents"
|
|
3234
3292
|
* // }
|
|
3235
3293
|
* }
|
|
3236
3294
|
*
|
|
@@ -3246,12 +3304,12 @@ export declare namespace dataform_v1beta1 {
|
|
|
3246
3304
|
* @param callback - Optional callback that handles the response.
|
|
3247
3305
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3248
3306
|
*/
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3307
|
+
readFile(params: Params$Resource$Projects$Locations$Repositories$Readfile, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3308
|
+
readFile(params?: Params$Resource$Projects$Locations$Repositories$Readfile, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ReadRepositoryFileResponse>>;
|
|
3309
|
+
readFile(params: Params$Resource$Projects$Locations$Repositories$Readfile, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3310
|
+
readFile(params: Params$Resource$Projects$Locations$Repositories$Readfile, options: MethodOptions | BodyResponseCallback<Schema$ReadRepositoryFileResponse>, callback: BodyResponseCallback<Schema$ReadRepositoryFileResponse>): void;
|
|
3311
|
+
readFile(params: Params$Resource$Projects$Locations$Repositories$Readfile, callback: BodyResponseCallback<Schema$ReadRepositoryFileResponse>): void;
|
|
3312
|
+
readFile(callback: BodyResponseCallback<Schema$ReadRepositoryFileResponse>): void;
|
|
3255
3313
|
}
|
|
3256
3314
|
export interface Params$Resource$Projects$Locations$Repositories$Commit extends StandardParameters {
|
|
3257
3315
|
/**
|
|
@@ -3319,16 +3377,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
3319
3377
|
*/
|
|
3320
3378
|
name?: string;
|
|
3321
3379
|
}
|
|
3322
|
-
export interface Params$Resource$Projects$Locations$Repositories$Getiampolicy extends StandardParameters {
|
|
3323
|
-
/**
|
|
3324
|
-
* 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).
|
|
3325
|
-
*/
|
|
3326
|
-
'options.requestedPolicyVersion'?: number;
|
|
3327
|
-
/**
|
|
3328
|
-
* 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.
|
|
3329
|
-
*/
|
|
3330
|
-
resource?: string;
|
|
3331
|
-
}
|
|
3332
3380
|
export interface Params$Resource$Projects$Locations$Repositories$List extends StandardParameters {
|
|
3333
3381
|
/**
|
|
3334
3382
|
* Optional. Filter for the returned list.
|
|
@@ -3401,26 +3449,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
3401
3449
|
*/
|
|
3402
3450
|
path?: string;
|
|
3403
3451
|
}
|
|
3404
|
-
export interface Params$Resource$Projects$Locations$Repositories$Setiampolicy extends StandardParameters {
|
|
3405
|
-
/**
|
|
3406
|
-
* 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.
|
|
3407
|
-
*/
|
|
3408
|
-
resource?: string;
|
|
3409
|
-
/**
|
|
3410
|
-
* Request body metadata
|
|
3411
|
-
*/
|
|
3412
|
-
requestBody?: Schema$SetIamPolicyRequest;
|
|
3413
|
-
}
|
|
3414
|
-
export interface Params$Resource$Projects$Locations$Repositories$Testiampermissions extends StandardParameters {
|
|
3415
|
-
/**
|
|
3416
|
-
* 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.
|
|
3417
|
-
*/
|
|
3418
|
-
resource?: string;
|
|
3419
|
-
/**
|
|
3420
|
-
* Request body metadata
|
|
3421
|
-
*/
|
|
3422
|
-
requestBody?: Schema$TestIamPermissionsRequest;
|
|
3423
|
-
}
|
|
3424
3452
|
export class Resource$Projects$Locations$Repositories$Compilationresults {
|
|
3425
3453
|
context: APIRequestContext;
|
|
3426
3454
|
constructor(context: APIRequestContext);
|
|
@@ -5678,75 +5706,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
5678
5706
|
get(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Get, options: MethodOptions | BodyResponseCallback<Schema$Workspace>, callback: BodyResponseCallback<Schema$Workspace>): void;
|
|
5679
5707
|
get(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Get, callback: BodyResponseCallback<Schema$Workspace>): void;
|
|
5680
5708
|
get(callback: BodyResponseCallback<Schema$Workspace>): void;
|
|
5681
|
-
/**
|
|
5682
|
-
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
|
|
5683
|
-
* @example
|
|
5684
|
-
* ```js
|
|
5685
|
-
* // Before running the sample:
|
|
5686
|
-
* // - Enable the API at:
|
|
5687
|
-
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
5688
|
-
* // - Login into gcloud by running:
|
|
5689
|
-
* // ```sh
|
|
5690
|
-
* // $ gcloud auth application-default login
|
|
5691
|
-
* // ```
|
|
5692
|
-
* // - Install the npm module by running:
|
|
5693
|
-
* // ```sh
|
|
5694
|
-
* // $ npm install googleapis
|
|
5695
|
-
* // ```
|
|
5696
|
-
*
|
|
5697
|
-
* const {google} = require('googleapis');
|
|
5698
|
-
* const dataform = google.dataform('v1beta1');
|
|
5699
|
-
*
|
|
5700
|
-
* async function main() {
|
|
5701
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5702
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5703
|
-
* scopes: [
|
|
5704
|
-
* 'https://www.googleapis.com/auth/bigquery',
|
|
5705
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5706
|
-
* ],
|
|
5707
|
-
* });
|
|
5708
|
-
*
|
|
5709
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5710
|
-
* const authClient = await auth.getClient();
|
|
5711
|
-
* google.options({auth: authClient});
|
|
5712
|
-
*
|
|
5713
|
-
* // Do the magic
|
|
5714
|
-
* const res =
|
|
5715
|
-
* await dataform.projects.locations.repositories.workspaces.getIamPolicy({
|
|
5716
|
-
* // 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).
|
|
5717
|
-
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
5718
|
-
* // 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.
|
|
5719
|
-
* resource:
|
|
5720
|
-
* 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
5721
|
-
* });
|
|
5722
|
-
* console.log(res.data);
|
|
5723
|
-
*
|
|
5724
|
-
* // Example response
|
|
5725
|
-
* // {
|
|
5726
|
-
* // "bindings": [],
|
|
5727
|
-
* // "etag": "my_etag",
|
|
5728
|
-
* // "version": 0
|
|
5729
|
-
* // }
|
|
5730
|
-
* }
|
|
5731
|
-
*
|
|
5732
|
-
* main().catch(e => {
|
|
5733
|
-
* console.error(e);
|
|
5734
|
-
* throw e;
|
|
5735
|
-
* });
|
|
5736
|
-
*
|
|
5737
|
-
* ```
|
|
5738
|
-
*
|
|
5739
|
-
* @param params - Parameters for request
|
|
5740
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5741
|
-
* @param callback - Optional callback that handles the response.
|
|
5742
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5743
|
-
*/
|
|
5744
|
-
getIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5745
|
-
getIamPolicy(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
|
|
5746
|
-
getIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5747
|
-
getIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
5748
|
-
getIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
5749
|
-
getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
5750
5709
|
/**
|
|
5751
5710
|
* Installs dependency NPM packages (inside a Workspace).
|
|
5752
5711
|
* @example
|
|
@@ -6673,156 +6632,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
6673
6632
|
searchFiles(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Searchfiles, options: MethodOptions | BodyResponseCallback<Schema$SearchFilesResponse>, callback: BodyResponseCallback<Schema$SearchFilesResponse>): void;
|
|
6674
6633
|
searchFiles(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Searchfiles, callback: BodyResponseCallback<Schema$SearchFilesResponse>): void;
|
|
6675
6634
|
searchFiles(callback: BodyResponseCallback<Schema$SearchFilesResponse>): void;
|
|
6676
|
-
/**
|
|
6677
|
-
* Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
|
6678
|
-
* @example
|
|
6679
|
-
* ```js
|
|
6680
|
-
* // Before running the sample:
|
|
6681
|
-
* // - Enable the API at:
|
|
6682
|
-
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
6683
|
-
* // - Login into gcloud by running:
|
|
6684
|
-
* // ```sh
|
|
6685
|
-
* // $ gcloud auth application-default login
|
|
6686
|
-
* // ```
|
|
6687
|
-
* // - Install the npm module by running:
|
|
6688
|
-
* // ```sh
|
|
6689
|
-
* // $ npm install googleapis
|
|
6690
|
-
* // ```
|
|
6691
|
-
*
|
|
6692
|
-
* const {google} = require('googleapis');
|
|
6693
|
-
* const dataform = google.dataform('v1beta1');
|
|
6694
|
-
*
|
|
6695
|
-
* async function main() {
|
|
6696
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6697
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6698
|
-
* scopes: [
|
|
6699
|
-
* 'https://www.googleapis.com/auth/bigquery',
|
|
6700
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6701
|
-
* ],
|
|
6702
|
-
* });
|
|
6703
|
-
*
|
|
6704
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6705
|
-
* const authClient = await auth.getClient();
|
|
6706
|
-
* google.options({auth: authClient});
|
|
6707
|
-
*
|
|
6708
|
-
* // Do the magic
|
|
6709
|
-
* const res =
|
|
6710
|
-
* await dataform.projects.locations.repositories.workspaces.setIamPolicy({
|
|
6711
|
-
* // 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.
|
|
6712
|
-
* resource:
|
|
6713
|
-
* 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
6714
|
-
*
|
|
6715
|
-
* // Request body metadata
|
|
6716
|
-
* requestBody: {
|
|
6717
|
-
* // request body parameters
|
|
6718
|
-
* // {
|
|
6719
|
-
* // "policy": {}
|
|
6720
|
-
* // }
|
|
6721
|
-
* },
|
|
6722
|
-
* });
|
|
6723
|
-
* console.log(res.data);
|
|
6724
|
-
*
|
|
6725
|
-
* // Example response
|
|
6726
|
-
* // {
|
|
6727
|
-
* // "bindings": [],
|
|
6728
|
-
* // "etag": "my_etag",
|
|
6729
|
-
* // "version": 0
|
|
6730
|
-
* // }
|
|
6731
|
-
* }
|
|
6732
|
-
*
|
|
6733
|
-
* main().catch(e => {
|
|
6734
|
-
* console.error(e);
|
|
6735
|
-
* throw e;
|
|
6736
|
-
* });
|
|
6737
|
-
*
|
|
6738
|
-
* ```
|
|
6739
|
-
*
|
|
6740
|
-
* @param params - Parameters for request
|
|
6741
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6742
|
-
* @param callback - Optional callback that handles the response.
|
|
6743
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6744
|
-
*/
|
|
6745
|
-
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6746
|
-
setIamPolicy(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
|
|
6747
|
-
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6748
|
-
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
6749
|
-
setIamPolicy(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
6750
|
-
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
6751
|
-
/**
|
|
6752
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
6753
|
-
* @example
|
|
6754
|
-
* ```js
|
|
6755
|
-
* // Before running the sample:
|
|
6756
|
-
* // - Enable the API at:
|
|
6757
|
-
* // https://console.developers.google.com/apis/api/dataform.googleapis.com
|
|
6758
|
-
* // - Login into gcloud by running:
|
|
6759
|
-
* // ```sh
|
|
6760
|
-
* // $ gcloud auth application-default login
|
|
6761
|
-
* // ```
|
|
6762
|
-
* // - Install the npm module by running:
|
|
6763
|
-
* // ```sh
|
|
6764
|
-
* // $ npm install googleapis
|
|
6765
|
-
* // ```
|
|
6766
|
-
*
|
|
6767
|
-
* const {google} = require('googleapis');
|
|
6768
|
-
* const dataform = google.dataform('v1beta1');
|
|
6769
|
-
*
|
|
6770
|
-
* async function main() {
|
|
6771
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6772
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6773
|
-
* scopes: [
|
|
6774
|
-
* 'https://www.googleapis.com/auth/bigquery',
|
|
6775
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6776
|
-
* ],
|
|
6777
|
-
* });
|
|
6778
|
-
*
|
|
6779
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6780
|
-
* const authClient = await auth.getClient();
|
|
6781
|
-
* google.options({auth: authClient});
|
|
6782
|
-
*
|
|
6783
|
-
* // Do the magic
|
|
6784
|
-
* const res =
|
|
6785
|
-
* await dataform.projects.locations.repositories.workspaces.testIamPermissions(
|
|
6786
|
-
* {
|
|
6787
|
-
* // 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.
|
|
6788
|
-
* resource:
|
|
6789
|
-
* 'projects/my-project/locations/my-location/repositories/my-repositorie/workspaces/my-workspace',
|
|
6790
|
-
*
|
|
6791
|
-
* // Request body metadata
|
|
6792
|
-
* requestBody: {
|
|
6793
|
-
* // request body parameters
|
|
6794
|
-
* // {
|
|
6795
|
-
* // "permissions": []
|
|
6796
|
-
* // }
|
|
6797
|
-
* },
|
|
6798
|
-
* },
|
|
6799
|
-
* );
|
|
6800
|
-
* console.log(res.data);
|
|
6801
|
-
*
|
|
6802
|
-
* // Example response
|
|
6803
|
-
* // {
|
|
6804
|
-
* // "permissions": []
|
|
6805
|
-
* // }
|
|
6806
|
-
* }
|
|
6807
|
-
*
|
|
6808
|
-
* main().catch(e => {
|
|
6809
|
-
* console.error(e);
|
|
6810
|
-
* throw e;
|
|
6811
|
-
* });
|
|
6812
|
-
*
|
|
6813
|
-
* ```
|
|
6814
|
-
*
|
|
6815
|
-
* @param params - Parameters for request
|
|
6816
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6817
|
-
* @param callback - Optional callback that handles the response.
|
|
6818
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6819
|
-
*/
|
|
6820
|
-
testIamPermissions(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6821
|
-
testIamPermissions(params?: Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
|
|
6822
|
-
testIamPermissions(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6823
|
-
testIamPermissions(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
6824
|
-
testIamPermissions(params: Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
6825
|
-
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
6826
6635
|
/**
|
|
6827
6636
|
* Writes to a file (inside a Workspace).
|
|
6828
6637
|
* @example
|
|
@@ -6958,16 +6767,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
6958
6767
|
*/
|
|
6959
6768
|
name?: string;
|
|
6960
6769
|
}
|
|
6961
|
-
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Getiampolicy extends StandardParameters {
|
|
6962
|
-
/**
|
|
6963
|
-
* 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).
|
|
6964
|
-
*/
|
|
6965
|
-
'options.requestedPolicyVersion'?: number;
|
|
6966
|
-
/**
|
|
6967
|
-
* 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.
|
|
6968
|
-
*/
|
|
6969
|
-
resource?: string;
|
|
6970
|
-
}
|
|
6971
6770
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Installnpmpackages extends StandardParameters {
|
|
6972
6771
|
/**
|
|
6973
6772
|
* Required. The workspace's name.
|
|
@@ -7130,26 +6929,6 @@ export declare namespace dataform_v1beta1 {
|
|
|
7130
6929
|
*/
|
|
7131
6930
|
workspace?: string;
|
|
7132
6931
|
}
|
|
7133
|
-
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Setiampolicy extends StandardParameters {
|
|
7134
|
-
/**
|
|
7135
|
-
* 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.
|
|
7136
|
-
*/
|
|
7137
|
-
resource?: string;
|
|
7138
|
-
/**
|
|
7139
|
-
* Request body metadata
|
|
7140
|
-
*/
|
|
7141
|
-
requestBody?: Schema$SetIamPolicyRequest;
|
|
7142
|
-
}
|
|
7143
|
-
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Testiampermissions extends StandardParameters {
|
|
7144
|
-
/**
|
|
7145
|
-
* 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.
|
|
7146
|
-
*/
|
|
7147
|
-
resource?: string;
|
|
7148
|
-
/**
|
|
7149
|
-
* Request body metadata
|
|
7150
|
-
*/
|
|
7151
|
-
requestBody?: Schema$TestIamPermissionsRequest;
|
|
7152
|
-
}
|
|
7153
6932
|
export interface Params$Resource$Projects$Locations$Repositories$Workspaces$Writefile extends StandardParameters {
|
|
7154
6933
|
/**
|
|
7155
6934
|
* Required. The workspace's name.
|