Skip to content

Commit

Permalink
Merge pull request #1908 from swisscom/feature/servicecatalog-provisi…
Browse files Browse the repository at this point in the history
…oned-product
  • Loading branch information
MisterMX authored Nov 10, 2023
2 parents 5164732 + 7d173f7 commit d0f2ff9
Show file tree
Hide file tree
Showing 23 changed files with 4,980 additions and 7 deletions.
2 changes: 2 additions & 0 deletions apis/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import (
s3control "github.com/crossplane-contrib/provider-aws/apis/s3control/v1alpha1"
secretsmanagerv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/secretsmanager/v1alpha1"
secretsmanagerv1beta1 "github.com/crossplane-contrib/provider-aws/apis/secretsmanager/v1beta1"
servicecatalogv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/servicecatalog/v1alpha1"
servicediscoveryv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/servicediscovery/v1alpha1"
sesv2v1alpha1 "github.com/crossplane-contrib/provider-aws/apis/sesv2/v1alpha1"
sfnv1alpha1 "github.com/crossplane-contrib/provider-aws/apis/sfn/v1alpha1"
Expand Down Expand Up @@ -171,6 +172,7 @@ func init() {
batchmanualv1alpha1.SchemeBuilder.AddToScheme,
emrcontainersv1alpah1.SchemeBuilder.AddToScheme,
autoscalingv1beta1.SchemeBuilder.AddToScheme,
servicecatalogv1alpha1.SchemeBuilder.AddToScheme,
s3control.SchemeBuilder.AddToScheme,
firehosev1alpha1.SchemeBuilder.AddToScheme,
)
Expand Down
101 changes: 101 additions & 0 deletions apis/servicecatalog/generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
ignore:
resource_names:
- Constraint
- PortfolioShare
- Portfolio
- Cluster
- Product
- ProvisionedProductPlan
- ProvisioningArtifact
- ServiceAction
- TagOption
field_paths:
- ProvisionProductInput.ProvisionToken
- UpdateProvisioningParameter.UsePreviousValue
- UpdateProvisioningPreferences.StackSetOperationType
- ProvisionProductInput.ProvisionedProductName
- UpdateProvisionedProductInput.ProvisionedProductId
- UpdateProvisionedProductInput.ProvisionedProductName
- TerminateProvisionedProductInput.ProvisionedProductId
- TerminateProvisionedProductInput.ProvisionedProductName
- DescribeProvisionedProductInput.ProvisionedProductId
- DescribeProvisionedProductInput.ProvisionedProductName
- ProvisionProductOutput.RecordDetail.PathId
- ProvisionProductOutput.RecordDetail.ProductId
- ProvisionProductOutput.RecordDetail.ProvisioningArtifactId
shape_names:
- ProvisionedProductPlanSummary
- ProvisionedProductPlanDetails
operations:
ProvisionProduct:
operation_type:
- Create
resource_name: ProvisionedProduct
UpdateProvisionedProduct:
operation_type:
- Update
resource_name: ProvisionedProduct
DescribeProvisionedProduct:
operation_type:
- Read
resource_name: ProvisionedProduct
TerminateProvisionedProduct:
operation_type:
- Delete
resource_name: ProvisionedProduct
resources:
ProvisionedProduct:
exceptions:
errors:
404:
code: ResourceNotFoundException
fields:
Outputs:
is_read_only: true
custom_field:
map_of: RecordOutput
Arn:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.Arn
CreatedTime:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.CreatedTime
LastProvisioningRecordId:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.LastProvisioningRecordId
LastProductID:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.ProductId
LastProvisioningArtifactID:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.ProvisioningArtifactId
LastProvisioningParameters:
is_read_only: true
custom_field:
list_of: ProvisioningParameter
LaunchRoleArn:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.LaunchRoleArn
Status:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.Status
StatusMessage:
is_read_only: true
from:
operation: DescribeProvisionedProduct
path: ProvisionedProductDetail.StatusMessage
4 changes: 4 additions & 0 deletions apis/servicecatalog/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package v1alpha1

// CustomProvisionedProductParameters includes the custom fields.
type CustomProvisionedProductParameters struct{}
24 changes: 24 additions & 0 deletions apis/servicecatalog/v1alpha1/zz_doc.go

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

Loading

0 comments on commit d0f2ff9

Please sign in to comment.