SaaS Runtime v1beta1 API - Class Tenant (1.0.0-beta01)
public sealed class Tenant : IMessage<Tenant>, IEquatable<Tenant>, IDeepCloneable<Tenant>, IBufferMessage, IMessage
Reference documentation and code samples for the SaaS Runtime v1beta1 API class Tenant.
Tenant represents the service producer side of an instance of the
service created based on a request from a consumer. In a typical scenario a
Tenant has a one-to-one mapping with a resource given out to a service
consumer.
public MapField<string, string> Annotations { get; }
Optional. Annotations is an unstructured key-value map stored with a
resource that may be set by external tools to store and retrieve arbitrary
metadata. They are not queryable and should be preserved when modifying
objects.
Optional. Immutable. A reference to the consumer resource this SaaS Tenant
is representing.
The relationship with a consumer resource can be used by SaaS Runtime for
retrieving consumer-defined settings and policies such as maintenance
policies (using Unified Maintenance Policy API).
Output only. An opaque value that uniquely identifies a version or
generation of a resource. It can be used to confirm that the client
and server agree on the ordering of a resource being written.
Required. Immutable. A reference to the Saas that defines the product
(managed service) that the producer wants to manage with SaaS Runtime. Part
of the SaaS Runtime common data model.
Output only. The unique identifier of the resource. UID is unique in the
time and space for this resource within the scope of the service. It is
typically generated by the server on successful creation of a resource
and must not be changed. UID is used to uniquely identify resources
with resource name reuses. This should be a UUID4.
Output only. The timestamp when the resource was last updated. Any
change to the resource made by users must refresh this value.
Changes to a resource made by the service should refresh this value.
[[["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-12 UTC."],[],[],null,["# SaaS Runtime v1beta1 API - Class Tenant (1.0.0-beta01)\n\n public sealed class Tenant : IMessage\u003cTenant\u003e, IEquatable\u003cTenant\u003e, IDeepCloneable\u003cTenant\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the SaaS Runtime v1beta1 API class Tenant.\n\nTenant represents the service producer side of an instance of the\nservice created based on a request from a consumer. In a typical scenario a\nTenant has a one-to-one mapping with a resource given out to a service\nconsumer.\n\nExample:\n\ntenant:\nname: \"projects/svc1/locations/loc/tenants/inst-068afff8\"\nconsumer_resource: \"projects/gshoe/locations/loc/shoes/black-shoe\" \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Tenant \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Tenant](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.Tenant), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Tenant](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.Tenant), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Tenant](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.Tenant), [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.SaasPlatform.SaasServiceMgmt.V1Beta1](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.dll\n\nConstructors\n------------\n\n### Tenant()\n\n public Tenant()\n\n### Tenant(Tenant)\n\n public Tenant(Tenant other)\n\nProperties\n----------\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nOptional. Annotations is an unstructured key-value map stored with a\nresource that may be set by external tools to store and retrieve arbitrary\nmetadata. They are not queryable and should be preserved when modifying\nobjects.\n\nMore info: \u003chttps://kubernetes.io/docs/user-guide/annotations\u003e\n\n### ConsumerResource\n\n public string ConsumerResource { get; set; }\n\nOptional. Immutable. A reference to the consumer resource this SaaS Tenant\nis representing.\n\nThe relationship with a consumer resource can be used by SaaS Runtime for\nretrieving consumer-defined settings and policies such as maintenance\npolicies (using Unified Maintenance Policy API).\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The timestamp when the resource was created.\n\n### Etag\n\n public string Etag { get; set; }\n\nOutput only. An opaque value that uniquely identifies a version or\ngeneration of a resource. It can be used to confirm that the client\nand server agree on the ordering of a resource being written.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. The labels on the resource, which can be used for categorization.\nsimilar to Kubernetes resource labels.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The resource name (full URI of the resource) following the\nstandard naming scheme:\n\n\"projects/{project}/locations/{location}/tenants/{tenant}\"\n\n### Saas\n\n public string Saas { get; set; }\n\nRequired. Immutable. A reference to the Saas that defines the product\n(managed service) that the producer wants to manage with SaaS Runtime. Part\nof the SaaS Runtime common data model.\n\n### SaasAsSaasName\n\n public SaasName SaasAsSaasName { get; set; }\n\n[SaasName](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.SaasName)-typed view over the [Saas](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.Tenant#Google_Cloud_SaasPlatform_SaasServiceMgmt_V1Beta1_Tenant_Saas) resource name property.\n\n### TenantName\n\n public TenantName TenantName { get; set; }\n\n[TenantName](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.TenantName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.Tenant#Google_Cloud_SaasPlatform_SaasServiceMgmt_V1Beta1_Tenant_Name) resource name property.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. The unique identifier of the resource. UID is unique in the\ntime and space for this resource within the scope of the service. It is\ntypically generated by the server on successful creation of a resource\nand must not be changed. UID is used to uniquely identify resources\nwith resource name reuses. This should be a UUID4.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The timestamp when the resource was last updated. Any\nchange to the resource made by users must refresh this value.\nChanges to a resource made by the service should refresh this value."]]