Service for managing customer support event subscriptions. v2beta
Package
@google-cloud/supportConstructors
(constructor)(opts, gaxInstance)
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);Construct an instance of SupportEventSubscriptionServiceClient.
| Parameters | |
|---|---|
| Name | Description |
opts |
ClientOptions
|
gaxInstance |
typeof gax | typeof fallback
: loaded instance of |
Properties
apiEndpoint
get apiEndpoint(): string;The DNS address for this API service.
apiEndpoint
static get apiEndpoint(): string;The DNS address for this API service - same as servicePath.
auth
auth: gax.GoogleAuth;descriptors
descriptors: Descriptors;innerApiCalls
innerApiCalls: {
[name: string]: Function;
};pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};port
static get port(): number;The port for this API service.
scopes
static get scopes(): string[];The scopes needed to make gRPC calls for every method defined in this service.
servicePath
static get servicePath(): string;The DNS address for this API service.
supportEventSubscriptionServiceStub
supportEventSubscriptionServiceStub?: Promise<{
[name: string]: Function;
}>;universeDomain
get universeDomain(): string;warn
warn: (code: string, message: string, warnType?: string) => void;Methods
close()
close(): Promise<void>;Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
| Returns | |
|---|---|
| Type | Description |
Promise<void> |
{Promise} A promise that resolves when the client is closed. |
createSupportEventSubscription(request, options)
createSupportEventSubscription(request?: protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest, options?: CallOptions): Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest | undefined),
{} | undefined
]>;Creates a support event subscription for an organization.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateSupportEventSubscriptionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest | undefined),
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource name where the support event subscription
* will be created. Format: organizations/{organization_id}
*/
// const parent = 'abc123'
/**
* Required. The Pub/Sub configuration to create.
*/
// const supportEventSubscription = {}
// Imports the Support library
const {SupportEventSubscriptionServiceClient} = require('@google-cloud/support').v2beta;
// Instantiates a client
const supportClient = new SupportEventSubscriptionServiceClient();
async function callCreateSupportEventSubscription() {
// Construct request
const request = {
parent,
supportEventSubscription,
};
// Run request
const response = await supportClient.createSupportEventSubscription(request);
console.log(response);
}
callCreateSupportEventSubscription();
createSupportEventSubscription(request, options, callback)
createSupportEventSubscription(request: protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest, options: CallOptions, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateSupportEventSubscriptionRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createSupportEventSubscription(request, callback)
createSupportEventSubscription(request: protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateSupportEventSubscriptionRequest
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.ICreateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteSupportEventSubscription(request, options)
deleteSupportEventSubscription(request?: protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest, options?: CallOptions): Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest | undefined),
{} | undefined
]>;Soft deletes a support event subscription.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteSupportEventSubscriptionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest | undefined),
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The name of the support event subscription to delete.
* Format:
* organizations/{organization_id}/supportEventSubscriptions/{subscription_id}
*/
// const name = 'abc123'
// Imports the Support library
const {SupportEventSubscriptionServiceClient} = require('@google-cloud/support').v2beta;
// Instantiates a client
const supportClient = new SupportEventSubscriptionServiceClient();
async function callDeleteSupportEventSubscription() {
// Construct request
const request = {
name,
};
// Run request
const response = await supportClient.deleteSupportEventSubscription(request);
console.log(response);
}
callDeleteSupportEventSubscription();
deleteSupportEventSubscription(request, options, callback)
deleteSupportEventSubscription(request: protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest, options: CallOptions, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteSupportEventSubscriptionRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteSupportEventSubscription(request, callback)
deleteSupportEventSubscription(request: protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteSupportEventSubscriptionRequest
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IDeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getProjectId()
getProjectId(): Promise<string>;| Returns | |
|---|---|
| Type | Description |
Promise<string> |
|
getProjectId(callback)
getProjectId(callback: Callback<string, undefined, undefined>): void;| Parameter | |
|---|---|
| Name | Description |
callback |
Callback<string, undefined, undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getSupportEventSubscription(request, options)
getSupportEventSubscription(request?: protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest, options?: CallOptions): Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest | undefined),
{} | undefined
]>;Gets a support event subscription.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetSupportEventSubscriptionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest | undefined),
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The name of the support event subscription to retrieve.
* Format:
* organizations/{organization_id}/supportEventSubscriptions/{subscription_id}
*/
// const name = 'abc123'
// Imports the Support library
const {SupportEventSubscriptionServiceClient} = require('@google-cloud/support').v2beta;
// Instantiates a client
const supportClient = new SupportEventSubscriptionServiceClient();
async function callGetSupportEventSubscription() {
// Construct request
const request = {
name,
};
// Run request
const response = await supportClient.getSupportEventSubscription(request);
console.log(response);
}
callGetSupportEventSubscription();
getSupportEventSubscription(request, options, callback)
getSupportEventSubscription(request: protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest, options: CallOptions, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetSupportEventSubscriptionRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getSupportEventSubscription(request, callback)
getSupportEventSubscription(request: protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetSupportEventSubscriptionRequest
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IGetSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
initialize()
initialize(): Promise<{
[name: string]: Function;
}>;Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
| Returns | |
|---|---|
| Type | Description |
Promise<{
[name: string]: Function;
}> |
{Promise} A promise that resolves to an authenticated service stub. |
listSupportEventSubscriptions(request, options)
listSupportEventSubscriptions(request?: protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, options?: CallOptions): Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription[],
protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest | null,
protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsResponse
]>;Lists support event subscriptions.
| Parameters | |
|---|---|
| Name | Description |
request |
IListSupportEventSubscriptionsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription[],
protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest | null,
protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listSupportEventSubscriptions(request, options, callback)
listSupportEventSubscriptions(request: protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsResponse | null | undefined, protos.google.cloud.support.v2beta.ISupportEventSubscription>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListSupportEventSubscriptionsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsResponse | null | undefined, protos.google.cloud.support.v2beta.ISupportEventSubscription>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listSupportEventSubscriptions(request, callback)
listSupportEventSubscriptions(request: protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, callback: PaginationCallback<protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsResponse | null | undefined, protos.google.cloud.support.v2beta.ISupportEventSubscription>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListSupportEventSubscriptionsRequest
|
callback |
PaginationCallback<protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsResponse | null | undefined, protos.google.cloud.support.v2beta.ISupportEventSubscription>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listSupportEventSubscriptionsAsync(request, options)
listSupportEventSubscriptionsAsync(request?: protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.support.v2beta.ISupportEventSubscription>;Equivalent to listSupportEventSubscriptions, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListSupportEventSubscriptionsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.support.v2beta.ISupportEventSubscription> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The fully qualified name of the Cloud resource to list support
* event subscriptions under. Format: organizations/{organization_id}
*/
// const parent = 'abc123'
/**
* Optional. Filter expression based on AIP-160.
* Supported fields:
* - pub_sub_topic
* - state
* Examples:
* - `pub_sub_topic="projects/example-project/topics/example-topic"`
* - `state=WORKING`
* - `pub_sub_topic="projects/example-project/topics/example-topic" AND
* state=WORKING`
*/
// const filter = 'abc123'
/**
* Optional. Whether to show deleted subscriptions. By default, deleted
* subscriptions are not returned.
*/
// const showDeleted = true
/**
* Optional. The maximum number of support event subscriptions to return.
*/
// const pageSize = 1234
/**
* Optional. A token identifying the page of results to return. If
* unspecified, the first page is retrieved.
* When paginating, all other parameters provided to
* `ListSupportEventSubscriptions` must match the call that provided the page
* token.
*/
// const pageToken = 'abc123'
// Imports the Support library
const {SupportEventSubscriptionServiceClient} = require('@google-cloud/support').v2beta;
// Instantiates a client
const supportClient = new SupportEventSubscriptionServiceClient();
async function callListSupportEventSubscriptions() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = supportClient.listSupportEventSubscriptionsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListSupportEventSubscriptions();
listSupportEventSubscriptionsStream(request, options)
listSupportEventSubscriptionsStream(request?: protos.google.cloud.support.v2beta.IListSupportEventSubscriptionsRequest, options?: CallOptions): Transform;Equivalent to listSupportEventSubscriptions, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListSupportEventSubscriptionsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
matchAttachmentIdFromOrganizationCaseAttachmentIdName(organizationCaseAttachmentIdName)
matchAttachmentIdFromOrganizationCaseAttachmentIdName(organizationCaseAttachmentIdName: string): string | number;Parse the attachment_id from OrganizationCaseAttachmentId resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseAttachmentIdName |
string
A fully-qualified path representing organization_case_attachment_id resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the attachment_id. |
matchAttachmentIdFromProjectCaseAttachmentIdName(projectCaseAttachmentIdName)
matchAttachmentIdFromProjectCaseAttachmentIdName(projectCaseAttachmentIdName: string): string | number;Parse the attachment_id from ProjectCaseAttachmentId resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseAttachmentIdName |
string
A fully-qualified path representing project_case_attachment_id resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the attachment_id. |
matchCaseFromOrganizationCaseAttachmentIdName(organizationCaseAttachmentIdName)
matchCaseFromOrganizationCaseAttachmentIdName(organizationCaseAttachmentIdName: string): string | number;Parse the case from OrganizationCaseAttachmentId resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseAttachmentIdName |
string
A fully-qualified path representing organization_case_attachment_id resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromOrganizationCaseCommentName(organizationCaseCommentName)
matchCaseFromOrganizationCaseCommentName(organizationCaseCommentName: string): string | number;Parse the case from OrganizationCaseComment resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseCommentName |
string
A fully-qualified path representing organization_case_comment resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromOrganizationCaseEmailMessagesName(organizationCaseEmailMessagesName)
matchCaseFromOrganizationCaseEmailMessagesName(organizationCaseEmailMessagesName: string): string | number;Parse the case from OrganizationCaseEmailMessages resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseEmailMessagesName |
string
A fully-qualified path representing organization_case_emailMessages resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromOrganizationCaseName(organizationCaseName)
matchCaseFromOrganizationCaseName(organizationCaseName: string): string | number;Parse the case from OrganizationCase resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseName |
string
A fully-qualified path representing organization_case resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromProjectCaseAttachmentIdName(projectCaseAttachmentIdName)
matchCaseFromProjectCaseAttachmentIdName(projectCaseAttachmentIdName: string): string | number;Parse the case from ProjectCaseAttachmentId resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseAttachmentIdName |
string
A fully-qualified path representing project_case_attachment_id resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromProjectCaseCommentName(projectCaseCommentName)
matchCaseFromProjectCaseCommentName(projectCaseCommentName: string): string | number;Parse the case from ProjectCaseComment resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseCommentName |
string
A fully-qualified path representing project_case_comment resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromProjectCaseEmailMessagesName(projectCaseEmailMessagesName)
matchCaseFromProjectCaseEmailMessagesName(projectCaseEmailMessagesName: string): string | number;Parse the case from ProjectCaseEmailMessages resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseEmailMessagesName |
string
A fully-qualified path representing project_case_emailMessages resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCaseFromProjectCaseName(projectCaseName)
matchCaseFromProjectCaseName(projectCaseName: string): string | number;Parse the case from ProjectCase resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseName |
string
A fully-qualified path representing project_case resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the case. |
matchCommentFromOrganizationCaseCommentName(organizationCaseCommentName)
matchCommentFromOrganizationCaseCommentName(organizationCaseCommentName: string): string | number;Parse the comment from OrganizationCaseComment resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseCommentName |
string
A fully-qualified path representing organization_case_comment resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the comment. |
matchCommentFromProjectCaseCommentName(projectCaseCommentName)
matchCommentFromProjectCaseCommentName(projectCaseCommentName: string): string | number;Parse the comment from ProjectCaseComment resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseCommentName |
string
A fully-qualified path representing project_case_comment resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the comment. |
matchEmailMessageFromOrganizationCaseEmailMessagesName(organizationCaseEmailMessagesName)
matchEmailMessageFromOrganizationCaseEmailMessagesName(organizationCaseEmailMessagesName: string): string | number;Parse the email_message from OrganizationCaseEmailMessages resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseEmailMessagesName |
string
A fully-qualified path representing organization_case_emailMessages resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the email_message. |
matchEmailMessageFromProjectCaseEmailMessagesName(projectCaseEmailMessagesName)
matchEmailMessageFromProjectCaseEmailMessagesName(projectCaseEmailMessagesName: string): string | number;Parse the email_message from ProjectCaseEmailMessages resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseEmailMessagesName |
string
A fully-qualified path representing project_case_emailMessages resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the email_message. |
matchOrganizationFromOrganizationCaseAttachmentIdName(organizationCaseAttachmentIdName)
matchOrganizationFromOrganizationCaseAttachmentIdName(organizationCaseAttachmentIdName: string): string | number;Parse the organization from OrganizationCaseAttachmentId resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseAttachmentIdName |
string
A fully-qualified path representing organization_case_attachment_id resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the organization. |
matchOrganizationFromOrganizationCaseCommentName(organizationCaseCommentName)
matchOrganizationFromOrganizationCaseCommentName(organizationCaseCommentName: string): string | number;Parse the organization from OrganizationCaseComment resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseCommentName |
string
A fully-qualified path representing organization_case_comment resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the organization. |
matchOrganizationFromOrganizationCaseEmailMessagesName(organizationCaseEmailMessagesName)
matchOrganizationFromOrganizationCaseEmailMessagesName(organizationCaseEmailMessagesName: string): string | number;Parse the organization from OrganizationCaseEmailMessages resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseEmailMessagesName |
string
A fully-qualified path representing organization_case_emailMessages resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the organization. |
matchOrganizationFromOrganizationCaseName(organizationCaseName)
matchOrganizationFromOrganizationCaseName(organizationCaseName: string): string | number;Parse the organization from OrganizationCase resource.
| Parameter | |
|---|---|
| Name | Description |
organizationCaseName |
string
A fully-qualified path representing organization_case resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the organization. |
matchOrganizationFromOrganizationName(organizationName)
matchOrganizationFromOrganizationName(organizationName: string): string | number;Parse the organization from Organization resource.
| Parameter | |
|---|---|
| Name | Description |
organizationName |
string
A fully-qualified path representing Organization resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the organization. |
matchOrganizationFromSupportEventSubscriptionName(supportEventSubscriptionName)
matchOrganizationFromSupportEventSubscriptionName(supportEventSubscriptionName: string): string | number;Parse the organization from SupportEventSubscription resource.
| Parameter | |
|---|---|
| Name | Description |
supportEventSubscriptionName |
string
A fully-qualified path representing SupportEventSubscription resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the organization. |
matchProjectFromProjectCaseAttachmentIdName(projectCaseAttachmentIdName)
matchProjectFromProjectCaseAttachmentIdName(projectCaseAttachmentIdName: string): string | number;Parse the project from ProjectCaseAttachmentId resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseAttachmentIdName |
string
A fully-qualified path representing project_case_attachment_id resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromProjectCaseCommentName(projectCaseCommentName)
matchProjectFromProjectCaseCommentName(projectCaseCommentName: string): string | number;Parse the project from ProjectCaseComment resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseCommentName |
string
A fully-qualified path representing project_case_comment resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromProjectCaseEmailMessagesName(projectCaseEmailMessagesName)
matchProjectFromProjectCaseEmailMessagesName(projectCaseEmailMessagesName: string): string | number;Parse the project from ProjectCaseEmailMessages resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseEmailMessagesName |
string
A fully-qualified path representing project_case_emailMessages resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromProjectCaseName(projectCaseName)
matchProjectFromProjectCaseName(projectCaseName: string): string | number;Parse the project from ProjectCase resource.
| Parameter | |
|---|---|
| Name | Description |
projectCaseName |
string
A fully-qualified path representing project_case resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchSupportEventSubscriptionFromSupportEventSubscriptionName(supportEventSubscriptionName)
matchSupportEventSubscriptionFromSupportEventSubscriptionName(supportEventSubscriptionName: string): string | number;Parse the support_event_subscription from SupportEventSubscription resource.
| Parameter | |
|---|---|
| Name | Description |
supportEventSubscriptionName |
string
A fully-qualified path representing SupportEventSubscription resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the support_event_subscription. |
organizationCaseAttachmentIdPath(organization, caseParam, attachmentId)
organizationCaseAttachmentIdPath(organization: string, caseParam: string, attachmentId: string): string;Return a fully-qualified organizationCaseAttachmentId resource name string.
| Parameters | |
|---|---|
| Name | Description |
organization |
string
|
caseParam |
string
|
attachmentId |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
organizationCaseCommentPath(organization, caseParam, comment)
organizationCaseCommentPath(organization: string, caseParam: string, comment: string): string;Return a fully-qualified organizationCaseComment resource name string.
| Parameters | |
|---|---|
| Name | Description |
organization |
string
|
caseParam |
string
|
comment |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
organizationCaseEmailMessagesPath(organization, caseParam, emailMessage)
organizationCaseEmailMessagesPath(organization: string, caseParam: string, emailMessage: string): string;Return a fully-qualified organizationCaseEmailMessages resource name string.
| Parameters | |
|---|---|
| Name | Description |
organization |
string
|
caseParam |
string
|
emailMessage |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
organizationCasePath(organization, caseParam)
organizationCasePath(organization: string, caseParam: string): string;Return a fully-qualified organizationCase resource name string.
| Parameters | |
|---|---|
| Name | Description |
organization |
string
|
caseParam |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
organizationPath(organization)
organizationPath(organization: string): string;Return a fully-qualified organization resource name string.
| Parameter | |
|---|---|
| Name | Description |
organization |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
projectCaseAttachmentIdPath(project, caseParam, attachmentId)
projectCaseAttachmentIdPath(project: string, caseParam: string, attachmentId: string): string;Return a fully-qualified projectCaseAttachmentId resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
caseParam |
string
|
attachmentId |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
projectCaseCommentPath(project, caseParam, comment)
projectCaseCommentPath(project: string, caseParam: string, comment: string): string;Return a fully-qualified projectCaseComment resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
caseParam |
string
|
comment |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
projectCaseEmailMessagesPath(project, caseParam, emailMessage)
projectCaseEmailMessagesPath(project: string, caseParam: string, emailMessage: string): string;Return a fully-qualified projectCaseEmailMessages resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
caseParam |
string
|
emailMessage |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
projectCasePath(project, caseParam)
projectCasePath(project: string, caseParam: string): string;Return a fully-qualified projectCase resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
caseParam |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
supportEventSubscriptionPath(organization, supportEventSubscription)
supportEventSubscriptionPath(organization: string, supportEventSubscription: string): string;Return a fully-qualified supportEventSubscription resource name string.
| Parameters | |
|---|---|
| Name | Description |
organization |
string
|
supportEventSubscription |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
undeleteSupportEventSubscription(request, options)
undeleteSupportEventSubscription(request?: protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest, options?: CallOptions): Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest | undefined),
{} | undefined
]>;Undeletes a support event subscription.
| Parameters | |
|---|---|
| Name | Description |
request |
IUndeleteSupportEventSubscriptionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest | undefined),
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The name of the support event subscription to undelete.
* Format:
* organizations/{organization_id}/supportEventSubscriptions/{subscription_id}
*/
// const name = 'abc123'
// Imports the Support library
const {SupportEventSubscriptionServiceClient} = require('@google-cloud/support').v2beta;
// Instantiates a client
const supportClient = new SupportEventSubscriptionServiceClient();
async function callUndeleteSupportEventSubscription() {
// Construct request
const request = {
name,
};
// Run request
const response = await supportClient.undeleteSupportEventSubscription(request);
console.log(response);
}
callUndeleteSupportEventSubscription();
undeleteSupportEventSubscription(request, options, callback)
undeleteSupportEventSubscription(request: protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest, options: CallOptions, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUndeleteSupportEventSubscriptionRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
undeleteSupportEventSubscription(request, callback)
undeleteSupportEventSubscription(request: protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUndeleteSupportEventSubscriptionRequest
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUndeleteSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateSupportEventSubscription(request, options)
updateSupportEventSubscription(request?: protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest, options?: CallOptions): Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest | undefined),
{} | undefined
]>;Updates a support event subscription.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateSupportEventSubscriptionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.support.v2beta.ISupportEventSubscription,
(protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest | undefined),
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The support event subscription to update.
* The `name` field is used to identify the configuration to update.
*/
// const supportEventSubscription = {}
/**
* Optional. The list of fields to update. The only supported value is
* pub_sub_topic.
*/
// const updateMask = {}
// Imports the Support library
const {SupportEventSubscriptionServiceClient} = require('@google-cloud/support').v2beta;
// Instantiates a client
const supportClient = new SupportEventSubscriptionServiceClient();
async function callUpdateSupportEventSubscription() {
// Construct request
const request = {
supportEventSubscription,
};
// Run request
const response = await supportClient.updateSupportEventSubscription(request);
console.log(response);
}
callUpdateSupportEventSubscription();
updateSupportEventSubscription(request, options, callback)
updateSupportEventSubscription(request: protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest, options: CallOptions, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateSupportEventSubscriptionRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateSupportEventSubscription(request, callback)
updateSupportEventSubscription(request: protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest, callback: Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateSupportEventSubscriptionRequest
|
callback |
Callback<protos.google.cloud.support.v2beta.ISupportEventSubscription, protos.google.cloud.support.v2beta.IUpdateSupportEventSubscriptionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|