Skip to content

Commit

Permalink
Merge pull request #22 from cloud-native-toolkit/fix/expose-properties
Browse files Browse the repository at this point in the history
fix: exposing spec as readonly property
  • Loading branch information
nathanagood authored Sep 12, 2023
2 parents 1b5a615 + 99e3fb4 commit 1db4906
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ export class Task extends ApiObject {
private readonly _metadata?: ApiObjectMetadata;
private readonly _spec?: TaskSpec;

/**
* The `Task` `spec`.
*/
public get spec(): TaskSpec | undefined {
return this._spec;
}

/**
* Defines a "Task" API object
* @param scope the scope in which to define this object
Expand Down

0 comments on commit 1db4906

Please sign in to comment.