Reference documentation and code samples for the Cloud Profiler V2 API class Google::Cloud::Profiler::V2::CreateProfileRequest.
CreateProfileRequest describes a profile resource online creation request.
The deployment field must be populated. The profile_type specifies the list
of profile types supported by the agent. The creation call will hang until a
profile of one of these types needs to be collected.
[[["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,["# Cloud Profiler V2 API - Class Google::Cloud::Profiler::V2::CreateProfileRequest (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-profiler-v2/1.2.1/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-profiler-v2/1.1.0/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-profiler-v2/1.0.1/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.10.1](/ruby/docs/reference/google-cloud-profiler-v2/0.10.1/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-profiler-v2/0.9.2/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-profiler-v2/0.8.0/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-profiler-v2/0.7.0/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.6.1](/ruby/docs/reference/google-cloud-profiler-v2/0.6.1/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-profiler-v2/0.5.0/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-profiler-v2/0.4.0/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-profiler-v2/0.3.0/Google-Cloud-Profiler-V2-CreateProfileRequest)\n- [0.2.5](/ruby/docs/reference/google-cloud-profiler-v2/0.2.5/Google-Cloud-Profiler-V2-CreateProfileRequest) \nReference documentation and code samples for the Cloud Profiler V2 API class Google::Cloud::Profiler::V2::CreateProfileRequest.\n\nCreateProfileRequest describes a profile resource online creation request.\nThe deployment field must be populated. The profile_type specifies the list\nof profile types supported by the agent. The creation call will hang until a\nprofile of one of these types needs to be collected. \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### #deployment\n\n def deployment() -\u003e ::Google::Cloud::Profiler::V2::Deployment\n\n**Returns**\n\n- ([::Google::Cloud::Profiler::V2::Deployment](./Google-Cloud-Profiler-V2-Deployment)) --- Deployment details.\n\n### #deployment=\n\n def deployment=(value) -\u003e ::Google::Cloud::Profiler::V2::Deployment\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Profiler::V2::Deployment](./Google-Cloud-Profiler-V2-Deployment)) --- Deployment details. \n**Returns**\n\n- ([::Google::Cloud::Profiler::V2::Deployment](./Google-Cloud-Profiler-V2-Deployment)) --- Deployment details.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Parent project to create the profile in.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Parent project to create the profile in. \n**Returns**\n\n- (::String) --- Parent project to create the profile in.\n\n### #profile_type\n\n def profile_type() -\u003e ::Array\u003c::Google::Cloud::Profiler::V2::ProfileType\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Profiler::V2::ProfileType](./Google-Cloud-Profiler-V2-ProfileType)\\\u003e) --- One or more profile types that the agent is capable of providing.\n\n### #profile_type=\n\n def profile_type=(value) -\u003e ::Array\u003c::Google::Cloud::Profiler::V2::ProfileType\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Profiler::V2::ProfileType](./Google-Cloud-Profiler-V2-ProfileType)\\\u003e) --- One or more profile types that the agent is capable of providing. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Profiler::V2::ProfileType](./Google-Cloud-Profiler-V2-ProfileType)\\\u003e) --- One or more profile types that the agent is capable of providing."]]