-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(samples): include metadata file, add exclusions for samples to h…
…andwritten libraries (#67) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: googleapis/googleapis@84594b3 Source-Link: googleapis/googleapis-gen@ed74f97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9
- Loading branch information
1 parent
c94f8ce
commit f6d719f
Showing
7 changed files
with
254 additions
and
13 deletions.
There are no files selected for viewing
191 changes: 191 additions & 0 deletions
191
...gle-cloud-vpc-access/samples/generated/v1/snippet_metadata.google.cloud.vpcaccess.v1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
{ | ||
"clientLibrary": { | ||
"name": "nodejs-vpcaccess", | ||
"version": "0.1.0", | ||
"language": "TYPESCRIPT", | ||
"apis": [ | ||
{ | ||
"id": "google.cloud.vpcaccess.v1", | ||
"version": "v1" | ||
} | ||
] | ||
}, | ||
"snippets": [ | ||
{ | ||
"regionTag": "vpcaccess_v1_generated_VpcAccessService_CreateConnector_async", | ||
"title": "VpcAccessService createConnector Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Creates a Serverless VPC Access connector, returns an operation.", | ||
"canonical": true, | ||
"file": "vpc_access_service.create_connector.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 25, | ||
"end": 62, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "CreateConnector", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.CreateConnector", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "parent", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "connector_id", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "connector", | ||
"type": ".google.cloud.vpcaccess.v1.Connector" | ||
} | ||
], | ||
"resultType": ".google.longrunning.Operation", | ||
"client": { | ||
"shortName": "VpcAccessServiceClient", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" | ||
}, | ||
"method": { | ||
"shortName": "CreateConnector", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.CreateConnector", | ||
"service": { | ||
"shortName": "VpcAccessService", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "vpcaccess_v1_generated_VpcAccessService_GetConnector_async", | ||
"title": "VpcAccessService getConnector Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.", | ||
"canonical": true, | ||
"file": "vpc_access_service.get_connector.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 25, | ||
"end": 50, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "GetConnector", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetConnector", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "name", | ||
"type": "TYPE_STRING" | ||
} | ||
], | ||
"resultType": ".google.cloud.vpcaccess.v1.Connector", | ||
"client": { | ||
"shortName": "VpcAccessServiceClient", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" | ||
}, | ||
"method": { | ||
"shortName": "GetConnector", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetConnector", | ||
"service": { | ||
"shortName": "VpcAccessService", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "vpcaccess_v1_generated_VpcAccessService_ListConnectors_async", | ||
"title": "VpcAccessService listConnectors Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Lists Serverless VPC Access connectors.", | ||
"canonical": true, | ||
"file": "vpc_access_service.list_connectors.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 25, | ||
"end": 60, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "ListConnectors", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListConnectors", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "parent", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "page_size", | ||
"type": "TYPE_INT32" | ||
}, | ||
{ | ||
"name": "page_token", | ||
"type": "TYPE_STRING" | ||
} | ||
], | ||
"resultType": ".google.cloud.vpcaccess.v1.ListConnectorsResponse", | ||
"client": { | ||
"shortName": "VpcAccessServiceClient", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" | ||
}, | ||
"method": { | ||
"shortName": "ListConnectors", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListConnectors", | ||
"service": { | ||
"shortName": "VpcAccessService", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "vpcaccess_v1_generated_VpcAccessService_DeleteConnector_async", | ||
"title": "VpcAccessService deleteConnector Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.", | ||
"canonical": true, | ||
"file": "vpc_access_service.delete_connector.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 25, | ||
"end": 51, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "DeleteConnector", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnector", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "name", | ||
"type": "TYPE_STRING" | ||
} | ||
], | ||
"resultType": ".google.longrunning.Operation", | ||
"client": { | ||
"shortName": "VpcAccessServiceClient", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" | ||
}, | ||
"method": { | ||
"shortName": "DeleteConnector", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnector", | ||
"service": { | ||
"shortName": "VpcAccessService", | ||
"fullName": "google.cloud.vpcaccess.v1.VpcAccessService" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
9 changes: 7 additions & 2 deletions
9
packages/google-cloud-vpc-access/samples/generated/v1/vpc_access_service.create_connector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
packages/google-cloud-vpc-access/samples/generated/v1/vpc_access_service.delete_connector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
packages/google-cloud-vpc-access/samples/generated/v1/vpc_access_service.get_connector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
packages/google-cloud-vpc-access/samples/generated/v1/vpc_access_service.list_connectors.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters