Class ProjectsResource.SubscribersResource.PatchRequest
Updates the configuration of an existing subscriber, such as the endpoint URI or the data types it's
interested in. Endpoint Verification: If the endpoint_uri or endpoint_authorization field is
included in the update_mask, the backend will re-verify the endpoint. The verification process is the
same as described in CreateSubscriber: 1. Verification with Authorization: POST to the new or
existing endpoint_uri with the new or existing Authorization secret. Expects HTTP 201 Created. 2.
Verification without Authorization: POST to the endpoint_uri without the Authorization header.
Expects HTTP 401 Unauthorized or 403 Forbidden. Both tests must pass using the potentially updated
values for the subscriber update to succeed. If verification fails, the update will not be applied, and
an error will be returned.
Inheritance
Inherited Members
Namespace: Google.Apis.GoogleHealthAPI.v4
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class ProjectsResource.SubscribersResource.PatchRequest : GoogleHealthAPIBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Subscriber, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Subscriber body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Subscriber | 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 Subscriber. Format: projects/{project}/subscribers/{subscriber} The {project} ID is a Google Cloud Project ID or Project Number. The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise (e.g., a UUID). Example (User-settable subscriber ID): projects/my-project/subscribers/my-sub-123 Example (System-generated subscriber ID): projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef
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. A field mask that specifies which fields of the Subscriber message are to be updated. This allows for partial updates. Supported fields: - endpoint_uri - subscriber_configs - endpoint_authorization
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()