G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 245 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jaypipes@udb42383a8e5155:~/go/src/github.com/aws/aws-service-operator-k8s$ go run cmd/ack-generate/main.go types < /tmp/apigateway.yaml
  2. // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License"). You may
  5. // not use this file except in compliance with the License. A copy of the
  6. // License is located at
  7. //
  8. //     http://aws.amazon.com/apache2.0/
  9. //
  10. // or in the "license" file accompanying this file. This file is distributed
  11. // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. // express or implied. See the License for the specific language governing
  13. // permissions and limitations under the License.
  14.  
  15. package v1alpha1
  16.  
  17. import (
  18.     metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. )
  20.  
  21.  
  22. type ApiStage struct {
  23.     ApiId string `json:"apiId,omitempty"`
  24.     Stage string `json:"stage,omitempty"`
  25.     Throttle map[string]string `json:"throttle,omitempty"`
  26. }
  27.  
  28. type MethodSnapshot struct {
  29.     ApiKeyRequired bool `json:"apiKeyRequired,omitempty"`
  30.     AuthorizationType string `json:"authorizationType,omitempty"`
  31. }
  32.  
  33. type AccessLogSettings struct {
  34.     DestinationArn string `json:"destinationArn,omitempty"`
  35.     Format string `json:"format,omitempty"`
  36. }
  37.  
  38. type SdkConfigurationProperty struct {
  39.     DefaultValue string `json:"defaultValue,omitempty"`
  40.     Description string `json:"description,omitempty"`
  41.     FriendlyName string `json:"friendlyName,omitempty"`
  42.     Name string `json:"name,omitempty"`
  43.     Required bool `json:"required,omitempty"`
  44. }
  45.  
  46. type PatchOperation struct {
  47.     From string `json:"from,omitempty"`
  48.     Op string `json:"op,omitempty"`
  49.     Path string `json:"path,omitempty"`
  50.     Value string `json:"value,omitempty"`
  51. }
  52.  
  53. type CanarySettings struct {
  54.     DeploymentId string `json:"deploymentId,omitempty"`
  55.     PercentTraffic int64 `json:"percentTraffic,omitempty"`
  56.     StageVariableOverrides map[string]string `json:"stageVariableOverrides,omitempty"`
  57.     UseStageCache bool `json:"useStageCache,omitempty"`
  58. }
  59.  
  60. type DocumentationPartLocation struct {
  61.     Method string `json:"method,omitempty"`
  62.     Name string `json:"name,omitempty"`
  63.     Path string `json:"path,omitempty"`
  64.     StatusCode string `json:"statusCode,omitempty"`
  65.     Type string `json:"type,omitempty"`
  66. }
  67.  
  68. type EndpointConfiguration struct {
  69.     Types []string `json:"types,omitempty"`
  70.     VpcEndpointIds []string `json:"vpcEndpointIds,omitempty"`
  71. }
  72.  
  73. type QuotaSettings struct {
  74.     Limit int64 `json:"limit,omitempty"`
  75.     Offset int64 `json:"offset,omitempty"`
  76.     Period string `json:"period,omitempty"`
  77. }
  78.  
  79. type StageKey struct {
  80.     RestApiId string `json:"restApiId,omitempty"`
  81.     StageName string `json:"stageName,omitempty"`
  82. }
  83.  
  84. type DeploymentCanarySettings struct {
  85.     PercentTraffic int64 `json:"percentTraffic,omitempty"`
  86.     StageVariableOverrides map[string]string `json:"stageVariableOverrides,omitempty"`
  87.     UseStageCache bool `json:"useStageCache,omitempty"`
  88. }
  89.  
  90. type ThrottleSettings struct {
  91.     BurstLimit int64 `json:"burstLimit,omitempty"`
  92.     RateLimit int64 `json:"rateLimit,omitempty"`
  93. }
  94.  
  95. type MethodSetting struct {
  96.     CacheDataEncrypted bool `json:"cacheDataEncrypted,omitempty"`
  97.     CacheTtlInSeconds int64 `json:"cacheTtlInSeconds,omitempty"`
  98.     CachingEnabled bool `json:"cachingEnabled,omitempty"`
  99.     DataTraceEnabled bool `json:"dataTraceEnabled,omitempty"`
  100.     LoggingLevel string `json:"loggingLevel,omitempty"`
  101.     MetricsEnabled bool `json:"metricsEnabled,omitempty"`
  102.     RequireAuthorizationForCacheControl bool `json:"requireAuthorizationForCacheControl,omitempty"`
  103.     ThrottlingBurstLimit int64 `json:"throttlingBurstLimit,omitempty"`
  104.     ThrottlingRateLimit int64 `json:"throttlingRateLimit,omitempty"`
  105.     UnauthorizedCacheControlHeaderStrategy string `json:"unauthorizedCacheControlHeaderStrategy,omitempty"`
  106. }
  107.  
  108. // ModelSpec defines the desired state of Model
  109. type ModelSpec struct {
  110.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  111.     // Resource Name for the object. CRs of this Kind that are created without
  112.     // an Arn attr will be created by the controller. CRs of this Kind that
  113.     // are created with a non-nil Arn attr are considered by the controller to
  114.     // already exist in the backend AWS service API.
  115.     Arn string `json:"arn,omitempty"`
  116.     ContentType string `json:"contentType,omitempty"`
  117.     Description string `json:"description,omitempty"`
  118.     Name string `json:"name,omitempty"`
  119.     RestApiId string `json:"restApiId,omitempty"`
  120.     Schema string `json:"schema,omitempty"`
  121. }
  122.  
  123. // ModelStatus defines the observed state of Model
  124. type ModelStatus struct {
  125.     ContentType string `json:"contentType,omitempty"`
  126.     Description string `json:"description,omitempty"`
  127.     Id string `json:"id,omitempty"`
  128.     Name string `json:"name,omitempty"`
  129.     Schema string `json:"schema,omitempty"`
  130. }
  131.  
  132. // Model is the Schema for the Models API
  133. type Model struct {
  134.     metav1.TypeMeta   `json:",inline"`
  135.     metav1.ObjectMeta `json:"metadata,omitempty"`
  136.     Spec   ModelSpec   `json:"spec,omitempty"`
  137.     Status ModelStatus `json:"status,omitempty"`
  138. }
  139.  
  140. // ModelList contains a list of Model
  141. type ModelList struct {
  142.     metav1.TypeMeta `json:",inline"`
  143.     metav1.ListMeta `json:"metadata,omitempty"`
  144.     Items           []Model `json:"items"`
  145. }
  146.  
  147. // RequestValidatorSpec defines the desired state of RequestValidator
  148. type RequestValidatorSpec struct {
  149.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  150.     // Resource Name for the object. CRs of this Kind that are created without
  151.     // an Arn attr will be created by the controller. CRs of this Kind that
  152.     // are created with a non-nil Arn attr are considered by the controller to
  153.     // already exist in the backend AWS service API.
  154.     Arn string `json:"arn,omitempty"`
  155.     Name string `json:"name,omitempty"`
  156.     RestApiId string `json:"restApiId,omitempty"`
  157.     ValidateRequestBody bool `json:"validateRequestBody,omitempty"`
  158.     ValidateRequestParameters bool `json:"validateRequestParameters,omitempty"`
  159. }
  160.  
  161. // RequestValidatorStatus defines the observed state of RequestValidator
  162. type RequestValidatorStatus struct {
  163.     Id string `json:"id,omitempty"`
  164.     Name string `json:"name,omitempty"`
  165.     ValidateRequestBody bool `json:"validateRequestBody,omitempty"`
  166.     ValidateRequestParameters bool `json:"validateRequestParameters,omitempty"`
  167. }
  168.  
  169. // RequestValidator is the Schema for the RequestValidators API
  170. type RequestValidator struct {
  171.     metav1.TypeMeta   `json:",inline"`
  172.     metav1.ObjectMeta `json:"metadata,omitempty"`
  173.     Spec   RequestValidatorSpec   `json:"spec,omitempty"`
  174.     Status RequestValidatorStatus `json:"status,omitempty"`
  175. }
  176.  
  177. // RequestValidatorList contains a list of RequestValidator
  178. type RequestValidatorList struct {
  179.     metav1.TypeMeta `json:",inline"`
  180.     metav1.ListMeta `json:"metadata,omitempty"`
  181.     Items           []RequestValidator `json:"items"`
  182. }
  183.  
  184. // StageSpec defines the desired state of Stage
  185. type StageSpec struct {
  186.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  187.     // Resource Name for the object. CRs of this Kind that are created without
  188.     // an Arn attr will be created by the controller. CRs of this Kind that
  189.     // are created with a non-nil Arn attr are considered by the controller to
  190.     // already exist in the backend AWS service API.
  191.     Arn string `json:"arn,omitempty"`
  192.     CacheClusterEnabled bool `json:"cacheClusterEnabled,omitempty"`
  193.     CacheClusterSize string `json:"cacheClusterSize,omitempty"`
  194.     CanarySettings *CanarySettings `json:"canarySettings,omitempty"`
  195.     DeploymentId string `json:"deploymentId,omitempty"`
  196.     Description string `json:"description,omitempty"`
  197.     DocumentationVersion string `json:"documentationVersion,omitempty"`
  198.     RestApiId string `json:"restApiId,omitempty"`
  199.     StageName string `json:"stageName,omitempty"`
  200.     Tags map[string]string `json:"tags,omitempty"`
  201.     TracingEnabled bool `json:"tracingEnabled,omitempty"`
  202.     Variables map[string]string `json:"variables,omitempty"`
  203. }
  204.  
  205. // StageStatus defines the observed state of Stage
  206. type StageStatus struct {
  207.     AccessLogSettings *AccessLogSettings `json:"accessLogSettings,omitempty"`
  208.     CacheClusterEnabled bool `json:"cacheClusterEnabled,omitempty"`
  209.     CacheClusterSize string `json:"cacheClusterSize,omitempty"`
  210.     CacheClusterStatus string `json:"cacheClusterStatus,omitempty"`
  211.     CanarySettings *CanarySettings `json:"canarySettings,omitempty"`
  212.     ClientCertificateId string `json:"clientCertificateId,omitempty"`
  213.     CreatedDate string `json:"createdDate,omitempty"`
  214.     DeploymentId string `json:"deploymentId,omitempty"`
  215.     Description string `json:"description,omitempty"`
  216.     DocumentationVersion string `json:"documentationVersion,omitempty"`
  217.     LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
  218.     MethodSettings map[string]string `json:"methodSettings,omitempty"`
  219.     StageName string `json:"stageName,omitempty"`
  220.     Tags map[string]string `json:"tags,omitempty"`
  221.     TracingEnabled bool `json:"tracingEnabled,omitempty"`
  222.     Variables map[string]string `json:"variables,omitempty"`
  223.     WebAclArn string `json:"webAclArn,omitempty"`
  224. }
  225.  
  226. // Stage is the Schema for the Stages API
  227. type Stage struct {
  228.     metav1.TypeMeta   `json:",inline"`
  229.     metav1.ObjectMeta `json:"metadata,omitempty"`
  230.     Spec   StageSpec   `json:"spec,omitempty"`
  231.     Status StageStatus `json:"status,omitempty"`
  232. }
  233.  
  234. // StageList contains a list of Stage
  235. type StageList struct {
  236.     metav1.TypeMeta `json:",inline"`
  237.     metav1.ListMeta `json:"metadata,omitempty"`
  238.     Items           []Stage `json:"items"`
  239. }
  240.  
  241. // DomainNameSpec defines the desired state of DomainName
  242. type DomainNameSpec struct {
  243.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  244.     // Resource Name for the object. CRs of this Kind that are created without
  245.     // an Arn attr will be created by the controller. CRs of this Kind that
  246.     // are created with a non-nil Arn attr are considered by the controller to
  247.     // already exist in the backend AWS service API.
  248.     Arn string `json:"arn,omitempty"`
  249.     CertificateArn string `json:"certificateArn,omitempty"`
  250.     CertificateBody string `json:"certificateBody,omitempty"`
  251.     CertificateChain string `json:"certificateChain,omitempty"`
  252.     CertificateName string `json:"certificateName,omitempty"`
  253.     CertificatePrivateKey string `json:"certificatePrivateKey,omitempty"`
  254.     DomainName string `json:"domainName,omitempty"`
  255.     EndpointConfiguration *EndpointConfiguration `json:"endpointConfiguration,omitempty"`
  256.     RegionalCertificateArn string `json:"regionalCertificateArn,omitempty"`
  257.     RegionalCertificateName string `json:"regionalCertificateName,omitempty"`
  258.     SecurityPolicy string `json:"securityPolicy,omitempty"`
  259.     Tags map[string]string `json:"tags,omitempty"`
  260. }
  261.  
  262. // DomainNameStatus defines the observed state of DomainName
  263. type DomainNameStatus struct {
  264.     CertificateArn string `json:"certificateArn,omitempty"`
  265.     CertificateName string `json:"certificateName,omitempty"`
  266.     CertificateUploadDate string `json:"certificateUploadDate,omitempty"`
  267.     DistributionDomainName string `json:"distributionDomainName,omitempty"`
  268.     DistributionHostedZoneId string `json:"distributionHostedZoneId,omitempty"`
  269.     DomainName string `json:"domainName,omitempty"`
  270.     DomainNameStatus string `json:"domainNameStatus,omitempty"`
  271.     DomainNameStatusMessage string `json:"domainNameStatusMessage,omitempty"`
  272.     EndpointConfiguration *EndpointConfiguration `json:"endpointConfiguration,omitempty"`
  273.     RegionalCertificateArn string `json:"regionalCertificateArn,omitempty"`
  274.     RegionalCertificateName string `json:"regionalCertificateName,omitempty"`
  275.     RegionalDomainName string `json:"regionalDomainName,omitempty"`
  276.     RegionalHostedZoneId string `json:"regionalHostedZoneId,omitempty"`
  277.     SecurityPolicy string `json:"securityPolicy,omitempty"`
  278.     Tags map[string]string `json:"tags,omitempty"`
  279. }
  280.  
  281. // DomainName is the Schema for the DomainNames API
  282. type DomainName struct {
  283.     metav1.TypeMeta   `json:",inline"`
  284.     metav1.ObjectMeta `json:"metadata,omitempty"`
  285.     Spec   DomainNameSpec   `json:"spec,omitempty"`
  286.     Status DomainNameStatus `json:"status,omitempty"`
  287. }
  288.  
  289. // DomainNameList contains a list of DomainName
  290. type DomainNameList struct {
  291.     metav1.TypeMeta `json:",inline"`
  292.     metav1.ListMeta `json:"metadata,omitempty"`
  293.     Items           []DomainName `json:"items"`
  294. }
  295.  
  296. // DocumentationVersionSpec defines the desired state of DocumentationVersion
  297. type DocumentationVersionSpec struct {
  298.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  299.     // Resource Name for the object. CRs of this Kind that are created without
  300.     // an Arn attr will be created by the controller. CRs of this Kind that
  301.     // are created with a non-nil Arn attr are considered by the controller to
  302.     // already exist in the backend AWS service API.
  303.     Arn string `json:"arn,omitempty"`
  304.     Description string `json:"description,omitempty"`
  305.     DocumentationVersion string `json:"documentationVersion,omitempty"`
  306.     RestApiId string `json:"restApiId,omitempty"`
  307.     StageName string `json:"stageName,omitempty"`
  308. }
  309.  
  310. // DocumentationVersionStatus defines the observed state of DocumentationVersion
  311. type DocumentationVersionStatus struct {
  312.     CreatedDate string `json:"createdDate,omitempty"`
  313.     Description string `json:"description,omitempty"`
  314.     Version string `json:"version,omitempty"`
  315. }
  316.  
  317. // DocumentationVersion is the Schema for the DocumentationVersions API
  318. type DocumentationVersion struct {
  319.     metav1.TypeMeta   `json:",inline"`
  320.     metav1.ObjectMeta `json:"metadata,omitempty"`
  321.     Spec   DocumentationVersionSpec   `json:"spec,omitempty"`
  322.     Status DocumentationVersionStatus `json:"status,omitempty"`
  323. }
  324.  
  325. // DocumentationVersionList contains a list of DocumentationVersion
  326. type DocumentationVersionList struct {
  327.     metav1.TypeMeta `json:",inline"`
  328.     metav1.ListMeta `json:"metadata,omitempty"`
  329.     Items           []DocumentationVersion `json:"items"`
  330. }
  331.  
  332. // BasePathMappingSpec defines the desired state of BasePathMapping
  333. type BasePathMappingSpec struct {
  334.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  335.     // Resource Name for the object. CRs of this Kind that are created without
  336.     // an Arn attr will be created by the controller. CRs of this Kind that
  337.     // are created with a non-nil Arn attr are considered by the controller to
  338.     // already exist in the backend AWS service API.
  339.     Arn string `json:"arn,omitempty"`
  340.     BasePath string `json:"basePath,omitempty"`
  341.     DomainName string `json:"domainName,omitempty"`
  342.     RestApiId string `json:"restApiId,omitempty"`
  343.     Stage string `json:"stage,omitempty"`
  344. }
  345.  
  346. // BasePathMappingStatus defines the observed state of BasePathMapping
  347. type BasePathMappingStatus struct {
  348.     BasePath string `json:"basePath,omitempty"`
  349.     RestApiId string `json:"restApiId,omitempty"`
  350.     Stage string `json:"stage,omitempty"`
  351. }
  352.  
  353. // BasePathMapping is the Schema for the BasePathMappings API
  354. type BasePathMapping struct {
  355.     metav1.TypeMeta   `json:",inline"`
  356.     metav1.ObjectMeta `json:"metadata,omitempty"`
  357.     Spec   BasePathMappingSpec   `json:"spec,omitempty"`
  358.     Status BasePathMappingStatus `json:"status,omitempty"`
  359. }
  360.  
  361. // BasePathMappingList contains a list of BasePathMapping
  362. type BasePathMappingList struct {
  363.     metav1.TypeMeta `json:",inline"`
  364.     metav1.ListMeta `json:"metadata,omitempty"`
  365.     Items           []BasePathMapping `json:"items"`
  366. }
  367.  
  368. // UsagePlanKeySpec defines the desired state of UsagePlanKey
  369. type UsagePlanKeySpec struct {
  370.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  371.     // Resource Name for the object. CRs of this Kind that are created without
  372.     // an Arn attr will be created by the controller. CRs of this Kind that
  373.     // are created with a non-nil Arn attr are considered by the controller to
  374.     // already exist in the backend AWS service API.
  375.     Arn string `json:"arn,omitempty"`
  376.     KeyId string `json:"keyId,omitempty"`
  377.     KeyType string `json:"keyType,omitempty"`
  378.     UsagePlanId string `json:"usagePlanId,omitempty"`
  379. }
  380.  
  381. // UsagePlanKeyStatus defines the observed state of UsagePlanKey
  382. type UsagePlanKeyStatus struct {
  383.     Id string `json:"id,omitempty"`
  384.     Name string `json:"name,omitempty"`
  385.     Type string `json:"type,omitempty"`
  386.     Value string `json:"value,omitempty"`
  387. }
  388.  
  389. // UsagePlanKey is the Schema for the UsagePlanKeys API
  390. type UsagePlanKey struct {
  391.     metav1.TypeMeta   `json:",inline"`
  392.     metav1.ObjectMeta `json:"metadata,omitempty"`
  393.     Spec   UsagePlanKeySpec   `json:"spec,omitempty"`
  394.     Status UsagePlanKeyStatus `json:"status,omitempty"`
  395. }
  396.  
  397. // UsagePlanKeyList contains a list of UsagePlanKey
  398. type UsagePlanKeyList struct {
  399.     metav1.TypeMeta `json:",inline"`
  400.     metav1.ListMeta `json:"metadata,omitempty"`
  401.     Items           []UsagePlanKey `json:"items"`
  402. }
  403.  
  404. // RestApiSpec defines the desired state of RestApi
  405. type RestApiSpec struct {
  406.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  407.     // Resource Name for the object. CRs of this Kind that are created without
  408.     // an Arn attr will be created by the controller. CRs of this Kind that
  409.     // are created with a non-nil Arn attr are considered by the controller to
  410.     // already exist in the backend AWS service API.
  411.     Arn string `json:"arn,omitempty"`
  412.     ApiKeySource string `json:"apiKeySource,omitempty"`
  413.     BinaryMediaTypes []string `json:"binaryMediaTypes,omitempty"`
  414.     CloneFrom string `json:"cloneFrom,omitempty"`
  415.     Description string `json:"description,omitempty"`
  416.     EndpointConfiguration *EndpointConfiguration `json:"endpointConfiguration,omitempty"`
  417.     MinimumCompressionSize int64 `json:"minimumCompressionSize,omitempty"`
  418.     Name string `json:"name,omitempty"`
  419.     Policy string `json:"policy,omitempty"`
  420.     Tags map[string]string `json:"tags,omitempty"`
  421.     Version string `json:"version,omitempty"`
  422. }
  423.  
  424. // RestApiStatus defines the observed state of RestApi
  425. type RestApiStatus struct {
  426.     ApiKeySource string `json:"apiKeySource,omitempty"`
  427.     BinaryMediaTypes []string `json:"binaryMediaTypes,omitempty"`
  428.     CreatedDate string `json:"createdDate,omitempty"`
  429.     Description string `json:"description,omitempty"`
  430.     EndpointConfiguration *EndpointConfiguration `json:"endpointConfiguration,omitempty"`
  431.     Id string `json:"id,omitempty"`
  432.     MinimumCompressionSize int64 `json:"minimumCompressionSize,omitempty"`
  433.     Name string `json:"name,omitempty"`
  434.     Policy string `json:"policy,omitempty"`
  435.     Tags map[string]string `json:"tags,omitempty"`
  436.     Version string `json:"version,omitempty"`
  437.     Warnings []string `json:"warnings,omitempty"`
  438. }
  439.  
  440. // RestApi is the Schema for the RestApis API
  441. type RestApi struct {
  442.     metav1.TypeMeta   `json:",inline"`
  443.     metav1.ObjectMeta `json:"metadata,omitempty"`
  444.     Spec   RestApiSpec   `json:"spec,omitempty"`
  445.     Status RestApiStatus `json:"status,omitempty"`
  446. }
  447.  
  448. // RestApiList contains a list of RestApi
  449. type RestApiList struct {
  450.     metav1.TypeMeta `json:",inline"`
  451.     metav1.ListMeta `json:"metadata,omitempty"`
  452.     Items           []RestApi `json:"items"`
  453. }
  454.  
  455. // DocumentationPartSpec defines the desired state of DocumentationPart
  456. type DocumentationPartSpec struct {
  457.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  458.     // Resource Name for the object. CRs of this Kind that are created without
  459.     // an Arn attr will be created by the controller. CRs of this Kind that
  460.     // are created with a non-nil Arn attr are considered by the controller to
  461.     // already exist in the backend AWS service API.
  462.     Arn string `json:"arn,omitempty"`
  463.     Location *Location `json:"location,omitempty"`
  464.     Properties string `json:"properties,omitempty"`
  465.     RestApiId string `json:"restApiId,omitempty"`
  466. }
  467.  
  468. // DocumentationPartStatus defines the observed state of DocumentationPart
  469. type DocumentationPartStatus struct {
  470.     Id string `json:"id,omitempty"`
  471.     Location *Location `json:"location,omitempty"`
  472.     Properties string `json:"properties,omitempty"`
  473. }
  474.  
  475. // DocumentationPart is the Schema for the DocumentationParts API
  476. type DocumentationPart struct {
  477.     metav1.TypeMeta   `json:",inline"`
  478.     metav1.ObjectMeta `json:"metadata,omitempty"`
  479.     Spec   DocumentationPartSpec   `json:"spec,omitempty"`
  480.     Status DocumentationPartStatus `json:"status,omitempty"`
  481. }
  482.  
  483. // DocumentationPartList contains a list of DocumentationPart
  484. type DocumentationPartList struct {
  485.     metav1.TypeMeta `json:",inline"`
  486.     metav1.ListMeta `json:"metadata,omitempty"`
  487.     Items           []DocumentationPart `json:"items"`
  488. }
  489.  
  490. // VpcLinkSpec defines the desired state of VpcLink
  491. type VpcLinkSpec struct {
  492.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  493.     // Resource Name for the object. CRs of this Kind that are created without
  494.     // an Arn attr will be created by the controller. CRs of this Kind that
  495.     // are created with a non-nil Arn attr are considered by the controller to
  496.     // already exist in the backend AWS service API.
  497.     Arn string `json:"arn,omitempty"`
  498.     Description string `json:"description,omitempty"`
  499.     Name string `json:"name,omitempty"`
  500.     Tags map[string]string `json:"tags,omitempty"`
  501.     TargetArns []string `json:"targetArns,omitempty"`
  502. }
  503.  
  504. // VpcLinkStatus defines the observed state of VpcLink
  505. type VpcLinkStatus struct {
  506.     Description string `json:"description,omitempty"`
  507.     Id string `json:"id,omitempty"`
  508.     Name string `json:"name,omitempty"`
  509.     Status string `json:"status,omitempty"`
  510.     StatusMessage string `json:"statusMessage,omitempty"`
  511.     Tags map[string]string `json:"tags,omitempty"`
  512.     TargetArns []string `json:"targetArns,omitempty"`
  513. }
  514.  
  515. // VpcLink is the Schema for the VpcLinks API
  516. type VpcLink struct {
  517.     metav1.TypeMeta   `json:",inline"`
  518.     metav1.ObjectMeta `json:"metadata,omitempty"`
  519.     Spec   VpcLinkSpec   `json:"spec,omitempty"`
  520.     Status VpcLinkStatus `json:"status,omitempty"`
  521. }
  522.  
  523. // VpcLinkList contains a list of VpcLink
  524. type VpcLinkList struct {
  525.     metav1.TypeMeta `json:",inline"`
  526.     metav1.ListMeta `json:"metadata,omitempty"`
  527.     Items           []VpcLink `json:"items"`
  528. }
  529.  
  530. // AuthorizerSpec defines the desired state of Authorizer
  531. type AuthorizerSpec struct {
  532.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  533.     // Resource Name for the object. CRs of this Kind that are created without
  534.     // an Arn attr will be created by the controller. CRs of this Kind that
  535.     // are created with a non-nil Arn attr are considered by the controller to
  536.     // already exist in the backend AWS service API.
  537.     Arn string `json:"arn,omitempty"`
  538.     AuthType string `json:"authType,omitempty"`
  539.     AuthorizerCredentials string `json:"authorizerCredentials,omitempty"`
  540.     AuthorizerResultTtlInSeconds int64 `json:"authorizerResultTtlInSeconds,omitempty"`
  541.     AuthorizerUri string `json:"authorizerUri,omitempty"`
  542.     IdentitySource string `json:"identitySource,omitempty"`
  543.     IdentityValidationExpression string `json:"identityValidationExpression,omitempty"`
  544.     Name string `json:"name,omitempty"`
  545.     ProviderARNs []string `json:"providerARNs,omitempty"`
  546.     RestApiId string `json:"restApiId,omitempty"`
  547.     Type string `json:"type,omitempty"`
  548. }
  549.  
  550. // AuthorizerStatus defines the observed state of Authorizer
  551. type AuthorizerStatus struct {
  552.     AuthType string `json:"authType,omitempty"`
  553.     AuthorizerCredentials string `json:"authorizerCredentials,omitempty"`
  554.     AuthorizerResultTtlInSeconds int64 `json:"authorizerResultTtlInSeconds,omitempty"`
  555.     AuthorizerUri string `json:"authorizerUri,omitempty"`
  556.     Id string `json:"id,omitempty"`
  557.     IdentitySource string `json:"identitySource,omitempty"`
  558.     IdentityValidationExpression string `json:"identityValidationExpression,omitempty"`
  559.     Name string `json:"name,omitempty"`
  560.     ProviderARNs []string `json:"providerARNs,omitempty"`
  561.     Type string `json:"type,omitempty"`
  562. }
  563.  
  564. // Authorizer is the Schema for the Authorizers API
  565. type Authorizer struct {
  566.     metav1.TypeMeta   `json:",inline"`
  567.     metav1.ObjectMeta `json:"metadata,omitempty"`
  568.     Spec   AuthorizerSpec   `json:"spec,omitempty"`
  569.     Status AuthorizerStatus `json:"status,omitempty"`
  570. }
  571.  
  572. // AuthorizerList contains a list of Authorizer
  573. type AuthorizerList struct {
  574.     metav1.TypeMeta `json:",inline"`
  575.     metav1.ListMeta `json:"metadata,omitempty"`
  576.     Items           []Authorizer `json:"items"`
  577. }
  578.  
  579. // ApiKeySpec defines the desired state of ApiKey
  580. type ApiKeySpec struct {
  581.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  582.     // Resource Name for the object. CRs of this Kind that are created without
  583.     // an Arn attr will be created by the controller. CRs of this Kind that
  584.     // are created with a non-nil Arn attr are considered by the controller to
  585.     // already exist in the backend AWS service API.
  586.     Arn string `json:"arn,omitempty"`
  587.     CustomerId string `json:"customerId,omitempty"`
  588.     Description string `json:"description,omitempty"`
  589.     Enabled bool `json:"enabled,omitempty"`
  590.     GenerateDistinctId bool `json:"generateDistinctId,omitempty"`
  591.     Name string `json:"name,omitempty"`
  592.     StageKeys []*StageKeys `json:"stageKeys,omitempty"`
  593.     Tags map[string]string `json:"tags,omitempty"`
  594.     Value string `json:"value,omitempty"`
  595. }
  596.  
  597. // ApiKeyStatus defines the observed state of ApiKey
  598. type ApiKeyStatus struct {
  599.     CreatedDate string `json:"createdDate,omitempty"`
  600.     CustomerId string `json:"customerId,omitempty"`
  601.     Description string `json:"description,omitempty"`
  602.     Enabled bool `json:"enabled,omitempty"`
  603.     Id string `json:"id,omitempty"`
  604.     LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
  605.     Name string `json:"name,omitempty"`
  606.     StageKeys []string `json:"stageKeys,omitempty"`
  607.     Tags map[string]string `json:"tags,omitempty"`
  608.     Value string `json:"value,omitempty"`
  609. }
  610.  
  611. // ApiKey is the Schema for the ApiKeys API
  612. type ApiKey struct {
  613.     metav1.TypeMeta   `json:",inline"`
  614.     metav1.ObjectMeta `json:"metadata,omitempty"`
  615.     Spec   ApiKeySpec   `json:"spec,omitempty"`
  616.     Status ApiKeyStatus `json:"status,omitempty"`
  617. }
  618.  
  619. // ApiKeyList contains a list of ApiKey
  620. type ApiKeyList struct {
  621.     metav1.TypeMeta `json:",inline"`
  622.     metav1.ListMeta `json:"metadata,omitempty"`
  623.     Items           []ApiKey `json:"items"`
  624. }
  625.  
  626. // DeploymentSpec defines the desired state of Deployment
  627. type DeploymentSpec struct {
  628.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  629.     // Resource Name for the object. CRs of this Kind that are created without
  630.     // an Arn attr will be created by the controller. CRs of this Kind that
  631.     // are created with a non-nil Arn attr are considered by the controller to
  632.     // already exist in the backend AWS service API.
  633.     Arn string `json:"arn,omitempty"`
  634.     CacheClusterEnabled bool `json:"cacheClusterEnabled,omitempty"`
  635.     CacheClusterSize string `json:"cacheClusterSize,omitempty"`
  636.     CanarySettings *CanarySettings `json:"canarySettings,omitempty"`
  637.     Description string `json:"description,omitempty"`
  638.     RestApiId string `json:"restApiId,omitempty"`
  639.     StageDescription string `json:"stageDescription,omitempty"`
  640.     StageName string `json:"stageName,omitempty"`
  641.     TracingEnabled bool `json:"tracingEnabled,omitempty"`
  642.     Variables map[string]string `json:"variables,omitempty"`
  643. }
  644.  
  645. // DeploymentStatus defines the observed state of Deployment
  646. type DeploymentStatus struct {
  647.     ApiSummary map[string]string `json:"apiSummary,omitempty"`
  648.     CreatedDate string `json:"createdDate,omitempty"`
  649.     Description string `json:"description,omitempty"`
  650.     Id string `json:"id,omitempty"`
  651. }
  652.  
  653. // Deployment is the Schema for the Deployments API
  654. type Deployment struct {
  655.     metav1.TypeMeta   `json:",inline"`
  656.     metav1.ObjectMeta `json:"metadata,omitempty"`
  657.     Spec   DeploymentSpec   `json:"spec,omitempty"`
  658.     Status DeploymentStatus `json:"status,omitempty"`
  659. }
  660.  
  661. // DeploymentList contains a list of Deployment
  662. type DeploymentList struct {
  663.     metav1.TypeMeta `json:",inline"`
  664.     metav1.ListMeta `json:"metadata,omitempty"`
  665.     Items           []Deployment `json:"items"`
  666. }
  667.  
  668. // ResourceSpec defines the desired state of Resource
  669. type ResourceSpec struct {
  670.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  671.     // Resource Name for the object. CRs of this Kind that are created without
  672.     // an Arn attr will be created by the controller. CRs of this Kind that
  673.     // are created with a non-nil Arn attr are considered by the controller to
  674.     // already exist in the backend AWS service API.
  675.     Arn string `json:"arn,omitempty"`
  676.     ParentId string `json:"parentId,omitempty"`
  677.     PathPart string `json:"pathPart,omitempty"`
  678.     RestApiId string `json:"restApiId,omitempty"`
  679. }
  680.  
  681. // ResourceStatus defines the observed state of Resource
  682. type ResourceStatus struct {
  683.     Id string `json:"id,omitempty"`
  684.     ParentId string `json:"parentId,omitempty"`
  685.     Path string `json:"path,omitempty"`
  686.     PathPart string `json:"pathPart,omitempty"`
  687.     ResourceMethods map[string]string `json:"resourceMethods,omitempty"`
  688. }
  689.  
  690. // Resource is the Schema for the Resources API
  691. type Resource struct {
  692.     metav1.TypeMeta   `json:",inline"`
  693.     metav1.ObjectMeta `json:"metadata,omitempty"`
  694.     Spec   ResourceSpec   `json:"spec,omitempty"`
  695.     Status ResourceStatus `json:"status,omitempty"`
  696. }
  697.  
  698. // ResourceList contains a list of Resource
  699. type ResourceList struct {
  700.     metav1.TypeMeta `json:",inline"`
  701.     metav1.ListMeta `json:"metadata,omitempty"`
  702.     Items           []Resource `json:"items"`
  703. }
  704.  
  705. // UsagePlanSpec defines the desired state of UsagePlan
  706. type UsagePlanSpec struct {
  707.     // The Arn attr is on all AWS service API CRs. It represents the Amazon
  708.     // Resource Name for the object. CRs of this Kind that are created without
  709.     // an Arn attr will be created by the controller. CRs of this Kind that
  710.     // are created with a non-nil Arn attr are considered by the controller to
  711.     // already exist in the backend AWS service API.
  712.     Arn string `json:"arn,omitempty"`
  713.     ApiStages []*ApiStages `json:"apiStages,omitempty"`
  714.     Description string `json:"description,omitempty"`
  715.     Name string `json:"name,omitempty"`
  716.     Quota *Quota `json:"quota,omitempty"`
  717.     Tags map[string]string `json:"tags,omitempty"`
  718.     Throttle *Throttle `json:"throttle,omitempty"`
  719. }
  720.  
  721. // UsagePlanStatus defines the observed state of UsagePlan
  722. type UsagePlanStatus struct {
  723.     ApiStages []*ApiStages `json:"apiStages,omitempty"`
  724.     Description string `json:"description,omitempty"`
  725.     Id string `json:"id,omitempty"`
  726.     Name string `json:"name,omitempty"`
  727.     ProductCode string `json:"productCode,omitempty"`
  728.     Quota *Quota `json:"quota,omitempty"`
  729.     Tags map[string]string `json:"tags,omitempty"`
  730.     Throttle *Throttle `json:"throttle,omitempty"`
  731. }
  732.  
  733. // UsagePlan is the Schema for the UsagePlans API
  734. type UsagePlan struct {
  735.     metav1.TypeMeta   `json:",inline"`
  736.     metav1.ObjectMeta `json:"metadata,omitempty"`
  737.     Spec   UsagePlanSpec   `json:"spec,omitempty"`
  738.     Status UsagePlanStatus `json:"status,omitempty"`
  739. }
  740.  
  741. // UsagePlanList contains a list of UsagePlan
  742. type UsagePlanList struct {
  743.     metav1.TypeMeta `json:",inline"`
  744.     metav1.ListMeta `json:"metadata,omitempty"`
  745.     Items           []UsagePlan `json:"items"`
  746. }
  747.  
  748.  
  749. func init() {
  750.     SchemeBuilder.Register(&Model{}, &ModelList{})
  751.     SchemeBuilder.Register(&RequestValidator{}, &RequestValidatorList{})
  752.     SchemeBuilder.Register(&Stage{}, &StageList{})
  753.     SchemeBuilder.Register(&DomainName{}, &DomainNameList{})
  754.     SchemeBuilder.Register(&DocumentationVersion{}, &DocumentationVersionList{})
  755.     SchemeBuilder.Register(&BasePathMapping{}, &BasePathMappingList{})
  756.     SchemeBuilder.Register(&UsagePlanKey{}, &UsagePlanKeyList{})
  757.     SchemeBuilder.Register(&RestApi{}, &RestApiList{})
  758.     SchemeBuilder.Register(&DocumentationPart{}, &DocumentationPartList{})
  759.     SchemeBuilder.Register(&VpcLink{}, &VpcLinkList{})
  760.     SchemeBuilder.Register(&Authorizer{}, &AuthorizerList{})
  761.     SchemeBuilder.Register(&ApiKey{}, &ApiKeyList{})
  762.     SchemeBuilder.Register(&Deployment{}, &DeploymentList{})
  763.     SchemeBuilder.Register(&Resource{}, &ResourceList{})
  764.     SchemeBuilder.Register(&UsagePlan{}, &UsagePlanList{})
  765. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top