Class: Google::Apis::DeveloperconnectV1::Connection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#annotationsHash<String,String>

Optional. Allows clients to store small amounts of arbitrary data. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


45
46
47
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 45

def annotations
  @annotations
end

#create_timeString

Output only. [Output only] Create timestamp Corresponds to the JSON property createTime

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 50

def create_time
  @create_time
end

#crypto_key_configGoogle::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_timeString

Output only. [Output only] Delete timestamp Corresponds to the JSON property deleteTime

Returns:

  • (String)


61
62
63
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 61

def delete_time
  @delete_time
end

#disabledBoolean 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

Returns:

  • (Boolean)


68
69
70
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 68

def disabled
  @disabled
end

#etagString

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

Returns:

  • (String)


76
77
78
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 76

def etag
  @etag
end

#github_configGoogle::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_configGoogle::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_configGoogle::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_configGoogle::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_stateGoogle::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

#labelsHash<String,String>

Optional. Labels as key value pairs Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


107
108
109
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 107

def labels
  @labels
end

#nameString

Identifier. The resource name of the connection, in the format projects/ project/locations/location/connections/connection_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 113

def name
  @name
end

#reconcilingBoolean 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

Returns:

  • (Boolean)


119
120
121
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 119

def reconciling
  @reconciling
end

#uidString

Output only. A system-assigned unique identifier for a the GitRepositoryLink. Corresponds to the JSON property uid

Returns:

  • (String)


125
126
127
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 125

def uid
  @uid
end

#update_timeString

Output only. [Output only] Update timestamp Corresponds to the JSON property updateTime

Returns:

  • (String)


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