-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from splunk/add_appinspect_rest_support
Add appinspect rest support
- Loading branch information
Showing
12 changed files
with
287 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ class ConfigBuildBa(BaseModel): | |
class ConfigBuild(BaseModel): | ||
# Fields required for app.conf based on | ||
# https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Appconf | ||
name: str = Field(default="ContentPack",title="Internal name used by your app. No spaces or special characters.") | ||
title: str = Field(default="ContentPack",title="Internal name used by your app. No spaces or special characters.") | ||
path_root: str = Field(default="dist",title="The root path at which you will build your app.") | ||
prefix: str = Field(default="ContentPack",title="A short prefix to easily identify all your content.") | ||
build: int = Field(default=int(datetime.utcnow().strftime("%Y%m%d%H%M%S")), | ||
|
@@ -120,7 +120,7 @@ class ConfigBuild(BaseModel): | |
# * must not be any of the following names: CON, PRN, AUX, NUL, | ||
# COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, | ||
# LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9 | ||
id: str = Field(default="ContentPack",title="Internal name used by your app. No spaces or special characters.") | ||
name: str = Field(default="ContentPack",title="Internal name used by your app. No spaces or special characters.") | ||
label: str = Field(default="Custom Splunk Content Pack",title="This is the app name that shows in the launcher.") | ||
author_name: str = Field(default="author name",title="Name of the Content Pack Author.") | ||
author_email: str = Field(default="[email protected]",title="Contact email for the Content Pack Author") | ||
|
@@ -138,6 +138,12 @@ def validate_version(cls, v, values): | |
except Exception as e: | ||
raise(ValueError(f"The specified version does not follow the semantic versioning spec (https://semver.org/). {str(e)}")) | ||
return v | ||
|
||
#Build will ALWAYS be the current utc timestamp | ||
@validator('build', always=True) | ||
def validate_build(cls, v, values): | ||
return int(datetime.utcnow().strftime("%Y%m%d%H%M%S")) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.