Reference documentation and code samples for the Network Connectivity V1alpha1 API class Google::Cloud::NetworkConnectivity::V1alpha1::CreateSpokeRequest.
(::String) — Required. The parent's resource name of the Spoke.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The parent's resource name of the Spoke.
Returns
(::String) — Required. The parent's resource name of the Spoke.
#request_id
defrequest_id()->::String
Returns
(::String) — Optional. An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t
he request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
#request_id=
defrequest_id=(value)->::String
Parameter
value (::String) — Optional. An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t
he request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Returns
(::String) — Optional. An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t
he request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
[[["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,["# Network Connectivity V1alpha1 API - Class Google::Cloud::NetworkConnectivity::V1alpha1::CreateSpokeRequest (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.11.1/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.10.0/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.9.1](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.9.1/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.8.2](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.8.2/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.7.0/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.6.1](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.6.1/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.5.0/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest)\n- [0.4.5](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/0.4.5/Google-Cloud-NetworkConnectivity-V1alpha1-CreateSpokeRequest) \nReference documentation and code samples for the Network Connectivity V1alpha1 API class Google::Cloud::NetworkConnectivity::V1alpha1::CreateSpokeRequest.\n\nThe request for [HubService.CreateSpoke](/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-HubService-Client#Google__Cloud__NetworkConnectivity__V1alpha1__HubService__Client_create_spoke_instance_ \"Google::Cloud::NetworkConnectivity::V1alpha1::HubService::Client#create_spoke (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### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent's resource name of the Spoke.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent's resource name of the Spoke. \n**Returns**\n\n- (::String) --- Required. The parent's resource name of the Spoke.\n\n### #request_id\n\n def request_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.\n\n For example, consider a situation where you make an initial request and t\n he request times out. If you make the request again with the same request\n ID, the server can check if original operation with the same request ID\n was received, and if so, will ignore the second request. This prevents\n clients from accidentally creating duplicate commitments.\n\n The request ID must be a valid UUID with the exception that zero UUID is\n not supported (00000000-0000-0000-0000-000000000000).\n\n### #request_id=\n\n def request_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.\n\n\n For example, consider a situation where you make an initial request and t\n he request times out. If you make the request again with the same request\n ID, the server can check if original operation with the same request ID\n was received, and if so, will ignore the second request. This prevents\n clients from accidentally creating duplicate commitments.\n\n The request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000). \n**Returns**\n\n- (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.\n\n For example, consider a situation where you make an initial request and t\n he request times out. If you make the request again with the same request\n ID, the server can check if original operation with the same request ID\n was received, and if so, will ignore the second request. This prevents\n clients from accidentally creating duplicate commitments.\n\n The request ID must be a valid UUID with the exception that zero UUID is\n not supported (00000000-0000-0000-0000-000000000000).\n\n### #spoke\n\n def spoke() -\u003e ::Google::Cloud::NetworkConnectivity::V1alpha1::Spoke\n\n**Returns**\n\n- ([::Google::Cloud::NetworkConnectivity::V1alpha1::Spoke](./Google-Cloud-NetworkConnectivity-V1alpha1-Spoke)) --- Required. Initial values for a new Hub.\n\n### #spoke=\n\n def spoke=(value) -\u003e ::Google::Cloud::NetworkConnectivity::V1alpha1::Spoke\n\n**Parameter**\n\n- **value** ([::Google::Cloud::NetworkConnectivity::V1alpha1::Spoke](./Google-Cloud-NetworkConnectivity-V1alpha1-Spoke)) --- Required. Initial values for a new Hub. \n**Returns**\n\n- ([::Google::Cloud::NetworkConnectivity::V1alpha1::Spoke](./Google-Cloud-NetworkConnectivity-V1alpha1-Spoke)) --- Required. Initial values for a new Hub.\n\n### #spoke_id\n\n def spoke_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Unique id for the Spoke to create.\n\n### #spoke_id=\n\n def spoke_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Unique id for the Spoke to create. \n**Returns**\n\n- (::String) --- Optional. Unique id for the Spoke to create."]]