Class: Google::Apis::DeveloperconnectV1::GitHubEnterpriseConfig

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

Configuration for connections to an instance of GitHub Enterprise.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitHubEnterpriseConfig

Returns a new instance of GitHubEnterpriseConfig.



453
454
455
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 453

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#app_idFixnum

Optional. ID of the GitHub App created from the manifest. Corresponds to the JSON property appId

Returns:

  • (Fixnum)


402
403
404
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 402

def app_id
  @app_id
end

#app_installation_idFixnum

Optional. ID of the installation of the GitHub App. Corresponds to the JSON property appInstallationId

Returns:

  • (Fixnum)


407
408
409
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 407

def app_installation_id
  @app_installation_id
end

#app_slugString

Output only. The URL-friendly name of the GitHub App. Corresponds to the JSON property appSlug

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 412

def app_slug
  @app_slug
end

#host_uriString

Required. The URI of the GitHub Enterprise host this connection is for. Corresponds to the JSON property hostUri

Returns:

  • (String)


417
418
419
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 417

def host_uri
  @host_uri
end

#installation_uriString

Output only. The URI to navigate to in order to manage the installation associated with this GitHubEnterpriseConfig. Corresponds to the JSON property installationUri

Returns:

  • (String)


423
424
425
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 423

def installation_uri
  @installation_uri
end

#private_key_secret_versionString

Optional. SecretManager resource containing the private key of the GitHub App, formatted as projects/*/secrets/*/versions/*. Corresponds to the JSON property privateKeySecretVersion

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 429

def private_key_secret_version
  @private_key_secret_version
end

#server_versionString

Output only. GitHub Enterprise version installed at the host_uri. Corresponds to the JSON property serverVersion

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 434

def server_version
  @server_version
end

#service_directory_configGoogle::Apis::DeveloperconnectV1::ServiceDirectoryConfig

ServiceDirectoryConfig represents Service Directory configuration for a connection. Corresponds to the JSON property serviceDirectoryConfig



440
441
442
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 440

def service_directory_config
  @service_directory_config
end

#ssl_ca_certificateString

Optional. SSL certificate to use for requests to GitHub Enterprise. Corresponds to the JSON property sslCaCertificate

Returns:

  • (String)


445
446
447
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 445

def ssl_ca_certificate
  @ssl_ca_certificate
end

#webhook_secret_secret_versionString

Optional. SecretManager resource containing the webhook secret of the GitHub App, formatted as projects/*/secrets/*/versions/*. Corresponds to the JSON property webhookSecretSecretVersion

Returns:

  • (String)


451
452
453
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 451

def webhook_secret_secret_version
  @webhook_secret_secret_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



458
459
460
461
462
463
464
465
466
467
468
469
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 458

def update!(**args)
  @app_id = args[:app_id] if args.key?(:app_id)
  @app_installation_id = args[:app_installation_id] if args.key?(:app_installation_id)
  @app_slug = args[:app_slug] if args.key?(:app_slug)
  @host_uri = args[:host_uri] if args.key?(:host_uri)
  @installation_uri = args[:installation_uri] if args.key?(:installation_uri)
  @private_key_secret_version = args[:private_key_secret_version] if args.key?(:private_key_secret_version)
  @server_version = args[:server_version] if args.key?(:server_version)
  @service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
  @ssl_ca_certificate = args[:ssl_ca_certificate] if args.key?(:ssl_ca_certificate)
  @webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version)
end