Class SupportEventSubscriptionsResource
The "supportEventSubscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class SupportEventSubscriptionsResource
Constructors
SupportEventSubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SupportEventSubscriptionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(SupportEventSubscription, string)
Creates a support event subscription for an organization. EXAMPLES: cURL:
shell
parent="organizations/123456789" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth
print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "pub_sub_topic":
"projects/my-project/topics/my-topic" }' \
"https://cloudsupport.googleapis.com/v2beta/$parent/supportEventSubscriptions"
Python:
python import
googleapiclient.discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService.supportEventSubscriptions().create( parent="organizations/123456789", body={
"pub_sub_topic": "projects/my-project/topics/my-topic" }, ) print(request.execute())
Declaration
public virtual SupportEventSubscriptionsResource.CreateRequest Create(SupportEventSubscription body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| SupportEventSubscription | body | The body of the request. |
| string | parent | Required. The parent resource name where the support event subscription will be created. Format: organizations/{organization_id} |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.CreateRequest |
Delete(string)
Soft deletes a support event subscription. EXAMPLES: cURL:
shell
support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request
DELETE \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription"
Python:
python import
googleapiclient.discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService).supportEventSubscriptions().delete(
name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute())
Declaration
public virtual SupportEventSubscriptionsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the support event subscription to delete. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id} |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.DeleteRequest |
Expunge(ExpungeSupportEventSubscriptionRequest, string)
Expunges a support event subscription.
Declaration
public virtual SupportEventSubscriptionsResource.ExpungeRequest Expunge(ExpungeSupportEventSubscriptionRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| ExpungeSupportEventSubscriptionRequest | body | The body of the request. |
| string | name | Required. The name of the support event subscription to expunge. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id} |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.ExpungeRequest |
Get(string)
Gets a support event subscription. EXAMPLES: cURL:
shell
support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --header
"Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription"
Python:
python import
googleapiclient.discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService.supportEventSubscriptions().get(
name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute())
Declaration
public virtual SupportEventSubscriptionsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the support event subscription to retrieve. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id} |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.GetRequest |
List(string)
Lists support event subscriptions. EXAMPLES: cURL:
shell parent="organizations/123456789" curl \ --header
"Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2beta/$parent/supportEventSubscriptions"
Python:
python import
googleapiclient.discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService.supportEventSubscriptions().list( parent="organizations/123456789" )
print(request.execute())
Declaration
public virtual SupportEventSubscriptionsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The fully qualified name of the Cloud resource to list support event subscriptions under. Format: organizations/{organization_id} |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.ListRequest |
Patch(SupportEventSubscription, string)
Updates a support event subscription. EXAMPLES: cURL:
shell
support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request
PATCH \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-Type:
application/json" \ --data '{ "pub_sub_topic": "projects/my-project/topics/new-topic" }' \
"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription?updateMask=pub_sub_topic"
Python:
python import googleapiclient.discovery api_version = "v2beta" supportApiService =
googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService.supportEventSubscriptions().patch(
name="organizations/123456789/supportEventSubscriptions/abcdef123456", body={ "pub_sub_topic":
"projects/my-project/topics/new-topic" }, ) print(request.execute())
Declaration
public virtual SupportEventSubscriptionsResource.PatchRequest Patch(SupportEventSubscription body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| SupportEventSubscription | body | The body of the request. |
| string | name | Identifier. The resource name of the support event subscription. |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.PatchRequest |
Undelete(UndeleteSupportEventSubscriptionRequest, string)
Undeletes a support event subscription. EXAMPLES: cURL:
shell
support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request
POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription:undelete"
Python:
python
import googleapiclient.discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService.supportEventSubscriptions().undelete(
name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute())
Undeletes a support event subscription.
Declaration
public virtual SupportEventSubscriptionsResource.UndeleteRequest Undelete(UndeleteSupportEventSubscriptionRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| UndeleteSupportEventSubscriptionRequest | body | The body of the request. |
| string | name | Required. The name of the support event subscription to undelete. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id} |
Returns
| Type | Description |
|---|---|
| SupportEventSubscriptionsResource.UndeleteRequest |