public sealed class CreateAnywhereCacheMetadata : IMessage<CreateAnywhereCacheMetadata>, IEquatable<CreateAnywhereCacheMetadata>, IDeepCloneable<CreateAnywhereCacheMetadata>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Storage v2 API class CreateAnywhereCacheMetadata.
Message returned in the metadata field of the Operation resource for
CreateAnywhereCache operations.
Anywhere Cache entry Admission Policy in kebab-case (e.g.,
"admit-on-first-miss"). Default admission policy (admit-on-first-miss) is
applied if not specified in the create request.
Anywhere Cache entry's TTL. A cache-level config that is applied to all new
cache entries on admission. Default ttl value (24hrs) is applied if not
specified in the create request.
[[["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 CreateAnywhereCacheMetadata (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.CreateAnywhereCacheMetadata)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.3.0/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.2.0/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.1.0/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata)\n- [1.0.1](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.0.1/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata) \n\n public sealed class CreateAnywhereCacheMetadata : IMessage\u003cCreateAnywhereCacheMetadata\u003e, IEquatable\u003cCreateAnywhereCacheMetadata\u003e, IDeepCloneable\u003cCreateAnywhereCacheMetadata\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Storage v2 API class CreateAnywhereCacheMetadata.\n\nMessage returned in the metadata field of the Operation resource for\nCreateAnywhereCache operations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateAnywhereCacheMetadata \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateAnywhereCacheMetadata](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateAnywhereCacheMetadata](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateAnywhereCacheMetadata](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.CreateAnywhereCacheMetadata), [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### CreateAnywhereCacheMetadata()\n\n public CreateAnywhereCacheMetadata()\n\n### CreateAnywhereCacheMetadata(CreateAnywhereCacheMetadata)\n\n public CreateAnywhereCacheMetadata(CreateAnywhereCacheMetadata other)\n\nProperties\n----------\n\n### AdmissionPolicy\n\n public string AdmissionPolicy { get; set; }\n\nAnywhere Cache entry Admission Policy in kebab-case (e.g.,\n\"admit-on-first-miss\"). Default admission policy (admit-on-first-miss) is\napplied if not specified in the create request.\n\n### AnywhereCacheId\n\n public string AnywhereCacheId { get; set; }\n\nAnywhere Cache ID.\n\n### CommonMetadata\n\n public CommonLongRunningOperationMetadata CommonMetadata { get; set; }\n\nGeneric metadata for the long running operation.\n\n### HasAdmissionPolicy\n\n public bool HasAdmissionPolicy { get; }\n\nGets whether the \"admission_policy\" field is set\n\n### HasAnywhereCacheId\n\n public bool HasAnywhereCacheId { get; }\n\nGets whether the \"anywhere_cache_id\" field is set\n\n### HasZone\n\n public bool HasZone { get; }\n\nGets whether the \"zone\" field is set\n\n### Ttl\n\n public Duration Ttl { get; set; }\n\nAnywhere Cache entry's TTL. A cache-level config that is applied to all new\ncache entries on admission. Default ttl value (24hrs) is applied if not\nspecified in the create request.\n\n### Zone\n\n public string Zone { get; set; }\n\nThe zone in which the cache instance is running. For example,\nus-central1-a."]]