Reference documentation and code samples for the Managed Service for Microsoft Active Directory API V1 API class Google::Cloud::ManagedIdentities::V1::CreateMicrosoftAdDomainRequest.
Request message for
[CreateMicrosoftAdDomain][google.cloud.managedidentities.v1.CreateMicrosoftAdDomain]
[[["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-09-09 UTC."],[],[],null,["# Managed Service for Microsoft Active Directory API V1 API - Class Google::Cloud::ManagedIdentities::V1::CreateMicrosoftAdDomainRequest (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-managed_identities-v1/latest/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-managed_identities-v1/1.2.1/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-managed_identities-v1/1.1.0/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-managed_identities-v1/1.0.1/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-managed_identities-v1/0.8.0/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-managed_identities-v1/0.7.2/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-managed_identities-v1/0.6.0/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [0.5.1](/ruby/docs/reference/google-cloud-managed_identities-v1/0.5.1/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-managed_identities-v1/0.4.0/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest)\n- [0.3.5](/ruby/docs/reference/google-cloud-managed_identities-v1/0.3.5/Google-Cloud-ManagedIdentities-V1-CreateMicrosoftAdDomainRequest) \nReference documentation and code samples for the Managed Service for Microsoft Active Directory API V1 API class Google::Cloud::ManagedIdentities::V1::CreateMicrosoftAdDomainRequest.\n\nRequest message for\n\\[CreateMicrosoftAdDomain\\]\\[google.cloud.managedidentities.v1.CreateMicrosoftAdDomain\\] \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #domain\n\n def domain() -\u003e ::Google::Cloud::ManagedIdentities::V1::Domain\n\n**Returns**\n\n- ([::Google::Cloud::ManagedIdentities::V1::Domain](./Google-Cloud-ManagedIdentities-V1-Domain)) --- Required. A Managed Identity domain resource.\n\n### #domain=\n\n def domain=(value) -\u003e ::Google::Cloud::ManagedIdentities::V1::Domain\n\n**Parameter**\n\n- **value** ([::Google::Cloud::ManagedIdentities::V1::Domain](./Google-Cloud-ManagedIdentities-V1-Domain)) --- Required. A Managed Identity domain resource. \n**Returns**\n\n- ([::Google::Cloud::ManagedIdentities::V1::Domain](./Google-Cloud-ManagedIdentities-V1-Domain)) --- Required. A Managed Identity domain resource.\n\n### #domain_name\n\n def domain_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The fully qualified domain name.\n e.g. mydomain.myorganization.com, with the following restrictions:\n\n - Must contain only lowercase letters, numbers, periods and hyphens.\n - Must start with a letter.\n - Must contain between 2-64 characters.\n - Must end with a number or a letter.\n - Must not start with period.\n - First segement length (mydomain form example above) shouldn't exceed 15 chars.\n - The last segment cannot be fully numeric.\n - Must be unique within the customer project.\n\n### #domain_name=\n\n def domain_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The fully qualified domain name.\n e.g. mydomain.myorganization.com, with the following restrictions:\n - Must contain only lowercase letters, numbers, periods and hyphens.\n - Must start with a letter.\n - Must contain between 2-64 characters.\n - Must end with a number or a letter.\n - Must not start with period.\n - First segement length (mydomain form example above) shouldn't exceed 15 chars.\n - The last segment cannot be fully numeric.\n- Must be unique within the customer project. \n**Returns**\n\n- (::String) --- Required. The fully qualified domain name.\n e.g. mydomain.myorganization.com, with the following restrictions:\n\n - Must contain only lowercase letters, numbers, periods and hyphens.\n - Must start with a letter.\n - Must contain between 2-64 characters.\n - Must end with a number or a letter.\n - Must not start with period.\n - First segement length (mydomain form example above) shouldn't exceed 15 chars.\n - The last segment cannot be fully numeric.\n - Must be unique within the customer project.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource project name and location using the form: `projects/{project_id}/locations/global`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource project name and location using the form: `projects/{project_id}/locations/global` \n**Returns**\n\n- (::String) --- Required. The resource project name and location using the form: `projects/{project_id}/locations/global`"]]