Infrastructure Manager V1 API - Class Google::Cloud::ConfigService::V1::GitSource (v2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::ConfigService::V1::GitSource.
A set of files in a Git repository.
Extended By
-
Google::Protobuf::MessageExts::ClassMethods
Includes
-
Google::Protobuf::MessageExts
Methods
#directory
def directory() -> ::String
Returns
-
(::String) — Optional. Subdirectory inside the repository.
Example: 'staging/my-package'
#directory=
def directory=(value) -> ::String
Parameter
-
value (::String) — Optional. Subdirectory inside the repository.
Example: 'staging/my-package'
Returns
-
(::String) — Optional. Subdirectory inside the repository.
Example: 'staging/my-package'
#ref
Returns
-
(::String) — Optional. Git reference (e.g. branch or tag).
#ref=
def ref=(value) -> ::String
Parameter
-
value (::String) — Optional. Git reference (e.g. branch or tag).
Returns
-
(::String) — Optional. Git reference (e.g. branch or tag).
#repo
Returns
-
(::String) — Optional. Repository URL.
Example: 'https://github.com/kubernetes/examples.git'
#repo=
def repo=(value) -> ::String
Parameter
-
value (::String) — Optional. Repository URL.
Example: 'https://github.com/kubernetes/examples.git'
Returns
-
(::String) — Optional. Repository URL.
Example: 'https://github.com/kubernetes/examples.git'
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
[[["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,["# Infrastructure Manager V1 API - Class Google::Cloud::ConfigService::V1::GitSource (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-config_service-v1/latest/Google-Cloud-ConfigService-V1-GitSource)\n- [2.1.0](/ruby/docs/reference/google-cloud-config_service-v1/2.1.0/Google-Cloud-ConfigService-V1-GitSource)\n- [2.0.1](/ruby/docs/reference/google-cloud-config_service-v1/2.0.1/Google-Cloud-ConfigService-V1-GitSource)\n- [1.3.0](/ruby/docs/reference/google-cloud-config_service-v1/1.3.0/Google-Cloud-ConfigService-V1-GitSource)\n- [1.2.1](/ruby/docs/reference/google-cloud-config_service-v1/1.2.1/Google-Cloud-ConfigService-V1-GitSource)\n- [1.1.0](/ruby/docs/reference/google-cloud-config_service-v1/1.1.0/Google-Cloud-ConfigService-V1-GitSource)\n- [1.0.2](/ruby/docs/reference/google-cloud-config_service-v1/1.0.2/Google-Cloud-ConfigService-V1-GitSource)\n- [0.6.0](/ruby/docs/reference/google-cloud-config_service-v1/0.6.0/Google-Cloud-ConfigService-V1-GitSource)\n- [0.5.0](/ruby/docs/reference/google-cloud-config_service-v1/0.5.0/Google-Cloud-ConfigService-V1-GitSource)\n- [0.4.0](/ruby/docs/reference/google-cloud-config_service-v1/0.4.0/Google-Cloud-ConfigService-V1-GitSource)\n- [0.3.1](/ruby/docs/reference/google-cloud-config_service-v1/0.3.1/Google-Cloud-ConfigService-V1-GitSource)\n- [0.2.1](/ruby/docs/reference/google-cloud-config_service-v1/0.2.1/Google-Cloud-ConfigService-V1-GitSource)\n- [0.1.0](/ruby/docs/reference/google-cloud-config_service-v1/0.1.0/Google-Cloud-ConfigService-V1-GitSource) \nReference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::ConfigService::V1::GitSource.\n\nA set of files in a Git repository. \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### #directory\n\n def directory() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Subdirectory inside the repository. Example: 'staging/my-package'\n\n### #directory=\n\n def directory=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Subdirectory inside the repository. Example: 'staging/my-package' \n**Returns**\n\n- (::String) --- Optional. Subdirectory inside the repository. Example: 'staging/my-package'\n\n### #ref\n\n def ref() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Git reference (e.g. branch or tag).\n\n### #ref=\n\n def ref=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Git reference (e.g. branch or tag). \n**Returns**\n\n- (::String) --- Optional. Git reference (e.g. branch or tag).\n\n### #repo\n\n def repo() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'\n\n### #repo=\n\n def repo=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git' \n**Returns**\n\n- (::String) --- Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git'"]]