Class: AWSCDK::DevOpsAgent::CfnAssociation::GitLabConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::GitLabConfigurationProperty
- Defined in:
- dev_ops_agent/cfn_association.rb
Overview
Configuration for GitLab project integration.
Defines the numeric project ID, full project path (namespace/project-name), GitLab instance identifier, and webhook update settings required for the Agent Space to access and interact with the GitLab project.
Instance Attribute Summary collapse
-
#enable_webhook_updates ⇒ Boolean, ...
readonly
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
-
#instance_identifier ⇒ String?
readonly
GitLab instance identifier (e.g., gitlab.com).
-
#project_id ⇒ String
readonly
GitLab numeric project ID.
-
#project_path ⇒ String
readonly
Full GitLab project path (e.g., namespace/project-name).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(project_id:, project_path:, enable_webhook_updates: nil, instance_identifier: nil) ⇒ GitLabConfigurationProperty
constructor
A new instance of GitLabConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(project_id:, project_path:, enable_webhook_updates: nil, instance_identifier: nil) ⇒ GitLabConfigurationProperty
Returns a new instance of GitLabConfigurationProperty.
879 880 881 882 883 884 885 886 887 888 |
# File 'dev_ops_agent/cfn_association.rb', line 879 def initialize(project_id:, project_path:, enable_webhook_updates: nil, instance_identifier: nil) @project_id = project_id Jsii::Type.check_type(@project_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "projectId") @project_path = project_path Jsii::Type.check_type(@project_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "projectPath") @enable_webhook_updates = enable_webhook_updates Jsii::Type.check_type(@enable_webhook_updates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableWebhookUpdates") unless @enable_webhook_updates.nil? @instance_identifier = instance_identifier Jsii::Type.check_type(@instance_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceIdentifier") unless @instance_identifier.nil? end |
Instance Attribute Details
#enable_webhook_updates ⇒ Boolean, ... (readonly)
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
904 905 906 |
# File 'dev_ops_agent/cfn_association.rb', line 904 def enable_webhook_updates @enable_webhook_updates end |
#instance_identifier ⇒ String? (readonly)
GitLab instance identifier (e.g., gitlab.com).
909 910 911 |
# File 'dev_ops_agent/cfn_association.rb', line 909 def instance_identifier @instance_identifier end |
#project_id ⇒ String (readonly)
GitLab numeric project ID.
894 895 896 |
# File 'dev_ops_agent/cfn_association.rb', line 894 def project_id @project_id end |
#project_path ⇒ String (readonly)
Full GitLab project path (e.g., namespace/project-name).
899 900 901 |
# File 'dev_ops_agent/cfn_association.rb', line 899 def project_path @project_path end |
Class Method Details
.jsii_properties ⇒ Object
911 912 913 914 915 916 917 918 |
# File 'dev_ops_agent/cfn_association.rb', line 911 def self.jsii_properties { :project_id => "projectId", :project_path => "projectPath", :enable_webhook_updates => "enableWebhookUpdates", :instance_identifier => "instanceIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
920 921 922 923 924 925 926 927 928 929 |
# File 'dev_ops_agent/cfn_association.rb', line 920 def to_jsii result = {} result.merge!({ "projectId" => @project_id, "projectPath" => @project_path, "enableWebhookUpdates" => @enable_webhook_updates, "instanceIdentifier" => @instance_identifier, }) result.compact end |