Class: Google::Apis::DeveloperconnectV1::Connection
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::Connection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/representations.rb
Overview
Message describing Connection object
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
Optional.
-
#create_time ⇒ String
Output only.
-
#crypto_key_config ⇒ Google::Apis::DeveloperconnectV1::CryptoKeyConfig
The crypto key configuration.
-
#delete_time ⇒ String
Output only.
-
#disabled ⇒ Boolean
(also: #disabled?)
Optional.
-
#etag ⇒ String
Optional.
-
#github_config ⇒ Google::Apis::DeveloperconnectV1::GitHubConfig
Configuration for connections to github.com.
-
#github_enterprise_config ⇒ Google::Apis::DeveloperconnectV1::GitHubEnterpriseConfig
Configuration for connections to an instance of GitHub Enterprise.
-
#gitlab_config ⇒ Google::Apis::DeveloperconnectV1::GitLabConfig
Configuration for connections to gitlab.com.
-
#gitlab_enterprise_config ⇒ Google::Apis::DeveloperconnectV1::GitLabEnterpriseConfig
Configuration for connections to an instance of GitLab Enterprise.
-
#installation_state ⇒ Google::Apis::DeveloperconnectV1::InstallationState
Describes stage and necessary actions to be taken by the user to complete the installation.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
-
#reconciling ⇒ Boolean
(also: #reconciling?)
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Connection
constructor
A new instance of Connection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Connection
Returns a new instance of Connection.
132 133 134 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 132 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Optional. Allows clients to store small amounts of arbitrary data.
Corresponds to the JSON property annotations
45 46 47 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 45 def annotations @annotations end |
#create_time ⇒ String
Output only. [Output only] Create timestamp
Corresponds to the JSON property createTime
50 51 52 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 50 def create_time @create_time end |
#crypto_key_config ⇒ Google::Apis::DeveloperconnectV1::CryptoKeyConfig
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
Corresponds to the JSON property cryptoKeyConfig
56 57 58 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 56 def crypto_key_config @crypto_key_config end |
#delete_time ⇒ String
Output only. [Output only] Delete timestamp
Corresponds to the JSON property deleteTime
61 62 63 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 61 def delete_time @delete_time end |
#disabled ⇒ Boolean Also known as: disabled?
Optional. If disabled is set to true, functionality is disabled for this
connection. Repository based API methods and webhooks processing for
repositories in this connection will be disabled.
Corresponds to the JSON property disabled
68 69 70 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 68 def disabled @disabled end |
#etag ⇒ String
Optional. This checksum is computed by the server based on the value of other
fields, and may be sent on update and delete requests to ensure the client has
an up-to-date value before proceeding.
Corresponds to the JSON property etag
76 77 78 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 76 def etag @etag end |
#github_config ⇒ Google::Apis::DeveloperconnectV1::GitHubConfig
Configuration for connections to github.com.
Corresponds to the JSON property githubConfig
81 82 83 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 81 def github_config @github_config end |
#github_enterprise_config ⇒ Google::Apis::DeveloperconnectV1::GitHubEnterpriseConfig
Configuration for connections to an instance of GitHub Enterprise.
Corresponds to the JSON property githubEnterpriseConfig
86 87 88 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 86 def github_enterprise_config @github_enterprise_config end |
#gitlab_config ⇒ Google::Apis::DeveloperconnectV1::GitLabConfig
Configuration for connections to gitlab.com.
Corresponds to the JSON property gitlabConfig
91 92 93 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 91 def gitlab_config @gitlab_config end |
#gitlab_enterprise_config ⇒ Google::Apis::DeveloperconnectV1::GitLabEnterpriseConfig
Configuration for connections to an instance of GitLab Enterprise.
Corresponds to the JSON property gitlabEnterpriseConfig
96 97 98 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 96 def gitlab_enterprise_config @gitlab_enterprise_config end |
#installation_state ⇒ Google::Apis::DeveloperconnectV1::InstallationState
Describes stage and necessary actions to be taken by the user to complete the
installation. Used for GitHub and GitHub Enterprise based connections.
Corresponds to the JSON property installationState
102 103 104 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 102 def installation_state @installation_state end |
#labels ⇒ Hash<String,String>
Optional. Labels as key value pairs
Corresponds to the JSON property labels
107 108 109 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 107 def labels @labels end |
#name ⇒ String
Identifier. The resource name of the connection, in the format projects/
project/locations/
location/connections/
connection_id`.
Corresponds to the JSON property
name`
113 114 115 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 113 def name @name end |
#reconciling ⇒ Boolean Also known as: reconciling?
Output only. Set to true when the connection is being set up or updated in the
background.
Corresponds to the JSON property reconciling
119 120 121 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 119 def reconciling @reconciling end |
#uid ⇒ String
Output only. A system-assigned unique identifier for a the GitRepositoryLink.
Corresponds to the JSON property uid
125 126 127 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 125 def uid @uid end |
#update_time ⇒ String
Output only. [Output only] Update timestamp
Corresponds to the JSON property updateTime
130 131 132 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 130 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 137 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @crypto_key_config = args[:crypto_key_config] if args.key?(:crypto_key_config) @delete_time = args[:delete_time] if args.key?(:delete_time) @disabled = args[:disabled] if args.key?(:disabled) @etag = args[:etag] if args.key?(:etag) @github_config = args[:github_config] if args.key?(:github_config) @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config) @gitlab_config = args[:gitlab_config] if args.key?(:gitlab_config) @gitlab_enterprise_config = args[:gitlab_enterprise_config] if args.key?(:gitlab_enterprise_config) @installation_state = args[:installation_state] if args.key?(:installation_state) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @reconciling = args[:reconciling] if args.key?(:reconciling) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |