Class SupportEventSubscriptionsResource.PatchRequest
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/v2/$support_event_subscription?updateMask=pub_sub_topic"
Python:
python import googleapiclient.discovery api_version = "v2" 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())
Inheritance
SupportEventSubscriptionsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.CloudSupport.v2
Assembly: Google.Apis.CloudSupport.v2.dll
Syntax
public class SupportEventSubscriptionsResource.PatchRequest : CloudSupportBaseServiceRequest<SupportEventSubscription>, IClientServiceRequest<SupportEventSubscription>, IClientServiceRequest
Constructors
PatchRequest(IClientService, SupportEventSubscription, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, SupportEventSubscription body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| SupportEventSubscription | body | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
Identifier. The resource name of the support event subscription.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
UpdateMask
Optional. The list of fields to update. The only supported value is pub_sub_topic.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()