public sealed class UpdateDataSourceRequest : IMessage<UpdateDataSourceRequest>, IEquatable<UpdateDataSourceRequest>, IDeepCloneable<UpdateDataSourceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class UpdateDataSourceRequest.
Request message for updating a data source instance.
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Required. Field mask is used to specify the fields to be overwritten in the
DataSource resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then the request will fail.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eUpdateDataSourceRequest\u003c/code\u003e class is 2.1.0, with older versions available including 2.0.0, 1.2.0, 1.1.0, and 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateDataSourceRequest\u003c/code\u003e is used for sending requests to update a data source instance, within the context of the Backup and DR Service v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, to provide methods and properties to the class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateDataSourceRequest\u003c/code\u003e class includes properties like \u003ccode\u003eAllowMissing\u003c/code\u003e (for upsert operations), \u003ccode\u003eDataSource\u003c/code\u003e (the resource being updated), \u003ccode\u003eRequestId\u003c/code\u003e (for request identification), and \u003ccode\u003eUpdateMask\u003c/code\u003e (specifying which fields to update).\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eUpdateDataSourceRequest\u003c/code\u003e, one being a parameterless constructor and another that takes an \u003ccode\u003eUpdateDataSourceRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class UpdateDataSourceRequest (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest) \n\n public sealed class UpdateDataSourceRequest : IMessage\u003cUpdateDataSourceRequest\u003e, IEquatable\u003cUpdateDataSourceRequest\u003e, IDeepCloneable\u003cUpdateDataSourceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class UpdateDataSourceRequest.\n\nRequest message for updating a data source instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateDataSourceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateDataSourceRequest](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateDataSourceRequest](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateDataSourceRequest](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.UpdateDataSourceRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### UpdateDataSourceRequest()\n\n public UpdateDataSourceRequest()\n\n### UpdateDataSourceRequest(UpdateDataSourceRequest)\n\n public UpdateDataSourceRequest(UpdateDataSourceRequest other)\n\nProperties\n----------\n\n### AllowMissing\n\n public bool AllowMissing { get; set; }\n\nOptional. Enable upsert.\n\n### DataSource\n\n public DataSource DataSource { get; set; }\n\nRequired. The resource being updated\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. An optional request ID to identify requests. Specify a unique\nrequest ID so that if you must retry your request, the server will know to\nignore the request if it has already been completed. The server will\nguarantee that for at least 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nRequired. Field mask is used to specify the fields to be overwritten in the\nDataSource resource by the update.\nThe fields specified in the update_mask are relative to the resource, not\nthe full request. A field will be overwritten if it is in the mask. If the\nuser does not provide a mask then the request will fail."]]