2018-05-22 21:43:36 +02:00
|
|
|
// Copyright 2016-2018, Pulumi Corporation.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2018-01-11 00:04:55 +01:00
|
|
|
|
|
|
|
package apitype
|
|
|
|
|
2018-09-10 21:50:10 +02:00
|
|
|
// StackSummary describes the state of a stack, without including its specific resources, etc.
|
2018-01-11 00:43:44 +01:00
|
|
|
type StackSummary struct {
|
2018-09-10 21:50:10 +02:00
|
|
|
// OrgName is the organization name the stack is found in.
|
|
|
|
OrgName string `json:"orgName"`
|
2019-01-08 21:52:09 +01:00
|
|
|
// ProjectName is the name of the project the stack is associated with.
|
|
|
|
ProjectName string `json:"projectName"`
|
2018-09-10 21:50:10 +02:00
|
|
|
// StackName is the name of the stack.
|
|
|
|
StackName string `json:"stackName"`
|
2018-01-11 00:43:44 +01:00
|
|
|
|
2020-01-17 16:44:23 +01:00
|
|
|
// LastUpdate is a Unix timestamp of the start time of the stack's last update, as applicable.
|
2018-09-10 21:50:10 +02:00
|
|
|
LastUpdate *int64 `json:"lastUpdate,omitempty"`
|
2018-01-11 00:43:44 +01:00
|
|
|
|
2018-09-10 21:50:10 +02:00
|
|
|
// ResourceCount is the number of resources associated with this stack, as applicable.
|
|
|
|
ResourceCount *int `json:"resourceCount,omitempty"`
|
2018-01-11 00:43:44 +01:00
|
|
|
}
|
|
|
|
|
2018-09-10 21:50:10 +02:00
|
|
|
// ListStacksResponse returns a set of stack summaries. This call is designed to be inexpensive.
|
2018-01-11 00:43:44 +01:00
|
|
|
type ListStacksResponse struct {
|
|
|
|
Stacks []StackSummary `json:"stacks"`
|
2021-07-13 23:01:39 +02:00
|
|
|
|
|
|
|
// ContinuationToken is an opaque value used to mark the end of the all stacks. If non-nil,
|
|
|
|
// pass it into a subsequent call in order to get the next batch of results.
|
|
|
|
//
|
|
|
|
// A value of nil means that all stacks have been returned.
|
|
|
|
ContinuationToken *string `json:"continuationToken,omitempty"`
|
2018-01-11 00:43:44 +01:00
|
|
|
}
|
|
|
|
|
2018-01-11 00:04:55 +01:00
|
|
|
// CreateStackRequest defines the request body for creating a new Stack
|
|
|
|
type CreateStackRequest struct {
|
2019-08-15 00:26:58 +02:00
|
|
|
// The rest of the StackIdentifier (e.g. organization, project) is in the URL.
|
2018-01-11 00:04:55 +01:00
|
|
|
StackName string `json:"stackName"`
|
2019-08-15 00:26:58 +02:00
|
|
|
|
2018-03-28 19:47:02 +02:00
|
|
|
// An optional set of tags to apply to the stack.
|
2019-11-06 20:11:38 +01:00
|
|
|
Tags map[StackTagName]string `json:"tags,omitempty"`
|
2018-01-11 00:04:55 +01:00
|
|
|
}
|
|
|
|
|
2018-10-24 22:50:35 +02:00
|
|
|
// CreateStackResponse is the response from a create Stack request.
|
|
|
|
type CreateStackResponse struct{}
|
2018-01-30 23:12:11 +01:00
|
|
|
|
2018-01-11 00:04:55 +01:00
|
|
|
// EncryptValueRequest defines the request body for encrypting a value.
|
|
|
|
type EncryptValueRequest struct {
|
|
|
|
// The value to encrypt.
|
|
|
|
Plaintext []byte `json:"plaintext"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncryptValueResponse defines the response body for an encrypted value.
|
|
|
|
type EncryptValueResponse struct {
|
|
|
|
// The encrypted value.
|
|
|
|
Ciphertext []byte `json:"ciphertext"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecryptValueRequest defines the request body for decrypting a value.
|
|
|
|
type DecryptValueRequest struct {
|
|
|
|
// The value to decrypt.
|
|
|
|
Ciphertext []byte `json:"ciphertext"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecryptValueResponse defines the response body for a decrypted value.
|
|
|
|
type DecryptValueResponse struct {
|
|
|
|
// The decrypted value.
|
|
|
|
Plaintext []byte `json:"plaintext"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ExportStackResponse defines the response body for exporting a Stack.
|
2018-03-03 21:12:54 +01:00
|
|
|
type ExportStackResponse UntypedDeployment
|
2018-01-11 00:04:55 +01:00
|
|
|
|
|
|
|
// ImportStackRequest defines the request body for importing a Stack.
|
2018-03-03 21:12:54 +01:00
|
|
|
type ImportStackRequest UntypedDeployment
|
2018-01-11 00:04:55 +01:00
|
|
|
|
|
|
|
// ImportStackResponse defines the response body for importing a Stack.
|
|
|
|
type ImportStackResponse struct {
|
|
|
|
UpdateID string `json:"updateId"`
|
|
|
|
}
|