[[["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,["# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [2.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/2.0.1/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.3.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.2.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.1.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/1.0.1/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.10.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-eventarc-v1/0.9.2/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.8.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.7.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.6.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.5.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.4.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.3.0/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.2.1](/ruby/docs/reference/google-cloud-eventarc-v1/0.2.1/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest)\n- [0.1.4](/ruby/docs/reference/google-cloud-eventarc-v1/0.1.4/Google-Cloud-Eventarc-V1-CreateGoogleApiSourceRequest) \nReference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest.\n\nThe request message for the CreateGoogleApiSource method. \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### #google_api_source\n\n def google_api_source() -\u003e ::Google::Cloud::Eventarc::V1::GoogleApiSource\n\n**Returns**\n\n- ([::Google::Cloud::Eventarc::V1::GoogleApiSource](./Google-Cloud-Eventarc-V1-GoogleApiSource)) --- Required. The google api source to create.\n\n### #google_api_source=\n\n def google_api_source=(value) -\u003e ::Google::Cloud::Eventarc::V1::GoogleApiSource\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Eventarc::V1::GoogleApiSource](./Google-Cloud-Eventarc-V1-GoogleApiSource)) --- Required. The google api source to create. \n**Returns**\n\n- ([::Google::Cloud::Eventarc::V1::GoogleApiSource](./Google-Cloud-Eventarc-V1-GoogleApiSource)) --- Required. The google api source to create.\n\n### #google_api_source_id\n\n def google_api_source_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (\\^[a-z](/ruby/docs/reference/google-cloud-eventarc-v1/latest/%5Ba-z0-9-%5D%5C%7B0,61%7D%5Ba-z0-9%5D)?$).\n\n### #google_api_source_id=\n\n def google_api_source_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (\\^[a-z](/ruby/docs/reference/google-cloud-eventarc-v1/latest/%5Ba-z0-9-%5D%5C%7B0,61%7D%5Ba-z0-9%5D)?$). \n**Returns**\n\n- (::String) --- Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (\\^[a-z](/ruby/docs/reference/google-cloud-eventarc-v1/latest/%5Ba-z0-9-%5D%5C%7B0,61%7D%5Ba-z0-9%5D)?$).\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent collection in which to add this google api source.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent collection in which to add this google api source. \n**Returns**\n\n- (::String) --- Required. The parent collection in which to add this google api source.\n\n### #validate_only\n\n def validate_only() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Optional. If set, validate the request and preview the review, but do not post it.\n\n### #validate_only=\n\n def validate_only=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Optional. If set, validate the request and preview the review, but do not post it. \n**Returns**\n\n- (::Boolean) --- Optional. If set, validate the request and preview the review, but do not post it."]]