public sealed class CreateAnywhereCacheRequest : IMessage<CreateAnywhereCacheRequest>, IEquatable<CreateAnywhereCacheRequest>, IDeepCloneable<CreateAnywhereCacheRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Storage v2 API class CreateAnywhereCacheRequest.
Required. Properties of the Anywhere Cache instance being created.
The parent bucket name is specified in the parent field. Server uses the
default value of ttl or admission_policy if not specified in
request.
Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted. This request is only
idempotent if a request_id is provided.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Storage v2 API - Class CreateAnywhereCacheRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.3.0/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.2.0/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.1.0/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest)\n- [1.0.1](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.0.1/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest) \n\n public sealed class CreateAnywhereCacheRequest : IMessage\u003cCreateAnywhereCacheRequest\u003e, IEquatable\u003cCreateAnywhereCacheRequest\u003e, IDeepCloneable\u003cCreateAnywhereCacheRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Storage v2 API class CreateAnywhereCacheRequest.\n\nRequest message for CreateAnywhereCache. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateAnywhereCacheRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateAnywhereCacheRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateAnywhereCacheRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateAnywhereCacheRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest), [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.Storage.Control.V2](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Storage.Control.V2.dll\n\nConstructors\n------------\n\n### CreateAnywhereCacheRequest()\n\n public CreateAnywhereCacheRequest()\n\n### CreateAnywhereCacheRequest(CreateAnywhereCacheRequest)\n\n public CreateAnywhereCacheRequest(CreateAnywhereCacheRequest other)\n\nProperties\n----------\n\n### AnywhereCache\n\n public AnywhereCache AnywhereCache { get; set; }\n\nRequired. Properties of the Anywhere Cache instance being created.\nThe parent bucket name is specified in the `parent` field. Server uses the\ndefault value of `ttl` or `admission_policy` if not specified in\nrequest.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The bucket to which this cache belongs.\nFormat: `projects/{project}/buckets/{bucket}`\n\n### ParentAsBucketName\n\n public BucketName ParentAsBucketName { get; set; }\n\n[BucketName](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.BucketName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheRequest#Google_Cloud_Storage_Control_V2_CreateAnywhereCacheRequest_Parent) resource name property.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A unique identifier for this request. UUID is the recommended\nformat, but other formats are still accepted. This request is only\nidempotent if a `request_id` is provided."]]