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.



111
112
113
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 111

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

#delete_timeString

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

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 55

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)


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

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)


70
71
72
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 70

def etag
  @etag
end

#github_configGoogle::Apis::DeveloperconnectV1::GitHubConfig

Configuration for connections to github.com. Corresponds to the JSON property githubConfig



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

def github_config
  @github_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



81
82
83
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 81

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>)


86
87
88
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 86

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)


92
93
94
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 92

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)


98
99
100
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 98

def reconciling
  @reconciling
end

#uidString

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

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 104

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 109

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 116

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @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)
  @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