@pulumi/pulumi 3.168.0-alpha.x0350dfc → 3.168.0-alpha.x0a828d2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/proto/provider_pb.d.ts +83 -0
- package/proto/provider_pb.js +795 -8
- package/proto/resource_status_grpc_pb.d.ts +43 -0
- package/proto/resource_status_grpc_pb.js +68 -0
- package/proto/resource_status_pb.d.ts +180 -0
- package/proto/resource_status_pb.js +1276 -0
- package/version.js +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// package: pulumirpc
|
|
2
|
+
// file: pulumi/resource_status.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as pulumi_resource_status_pb from "./resource_status_pb";
|
|
9
|
+
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
10
|
+
import * as pulumi_provider_pb from "./provider_pb";
|
|
11
|
+
|
|
12
|
+
interface IResourceStatusService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
13
|
+
publishViewSteps: IResourceStatusService_IPublishViewSteps;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface IResourceStatusService_IPublishViewSteps extends grpc.MethodDefinition<pulumi_resource_status_pb.PublishViewStepsRequest, pulumi_resource_status_pb.PublishViewStepsResponse> {
|
|
17
|
+
path: "/pulumirpc.ResourceStatus/PublishViewSteps";
|
|
18
|
+
requestStream: false;
|
|
19
|
+
responseStream: false;
|
|
20
|
+
requestSerialize: grpc.serialize<pulumi_resource_status_pb.PublishViewStepsRequest>;
|
|
21
|
+
requestDeserialize: grpc.deserialize<pulumi_resource_status_pb.PublishViewStepsRequest>;
|
|
22
|
+
responseSerialize: grpc.serialize<pulumi_resource_status_pb.PublishViewStepsResponse>;
|
|
23
|
+
responseDeserialize: grpc.deserialize<pulumi_resource_status_pb.PublishViewStepsResponse>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const ResourceStatusService: IResourceStatusService;
|
|
27
|
+
|
|
28
|
+
export interface IResourceStatusServer extends grpc.UntypedServiceImplementation {
|
|
29
|
+
publishViewSteps: grpc.handleUnaryCall<pulumi_resource_status_pb.PublishViewStepsRequest, pulumi_resource_status_pb.PublishViewStepsResponse>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IResourceStatusClient {
|
|
33
|
+
publishViewSteps(request: pulumi_resource_status_pb.PublishViewStepsRequest, callback: (error: grpc.ServiceError | null, response: pulumi_resource_status_pb.PublishViewStepsResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
publishViewSteps(request: pulumi_resource_status_pb.PublishViewStepsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_resource_status_pb.PublishViewStepsResponse) => void): grpc.ClientUnaryCall;
|
|
35
|
+
publishViewSteps(request: pulumi_resource_status_pb.PublishViewStepsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_resource_status_pb.PublishViewStepsResponse) => void): grpc.ClientUnaryCall;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class ResourceStatusClient extends grpc.Client implements IResourceStatusClient {
|
|
39
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
40
|
+
public publishViewSteps(request: pulumi_resource_status_pb.PublishViewStepsRequest, callback: (error: grpc.ServiceError | null, response: pulumi_resource_status_pb.PublishViewStepsResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
+
public publishViewSteps(request: pulumi_resource_status_pb.PublishViewStepsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_resource_status_pb.PublishViewStepsResponse) => void): grpc.ClientUnaryCall;
|
|
42
|
+
public publishViewSteps(request: pulumi_resource_status_pb.PublishViewStepsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_resource_status_pb.PublishViewStepsResponse) => void): grpc.ClientUnaryCall;
|
|
43
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// Original file comments:
|
|
4
|
+
// Copyright 2025, Pulumi Corporation.
|
|
5
|
+
//
|
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
// you may not use this file except in compliance with the License.
|
|
8
|
+
// You may obtain a copy of the License at
|
|
9
|
+
//
|
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
//
|
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
// See the License for the specific language governing permissions and
|
|
16
|
+
// limitations under the License.
|
|
17
|
+
//
|
|
18
|
+
'use strict';
|
|
19
|
+
var grpc = require('@grpc/grpc-js');
|
|
20
|
+
var pulumi_resource_status_pb = require('./resource_status_pb.js');
|
|
21
|
+
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
22
|
+
var pulumi_provider_pb = require('./provider_pb.js');
|
|
23
|
+
|
|
24
|
+
function serialize_pulumirpc_PublishViewStepsRequest(arg) {
|
|
25
|
+
if (!(arg instanceof pulumi_resource_status_pb.PublishViewStepsRequest)) {
|
|
26
|
+
throw new Error('Expected argument of type pulumirpc.PublishViewStepsRequest');
|
|
27
|
+
}
|
|
28
|
+
return Buffer.from(arg.serializeBinary());
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function deserialize_pulumirpc_PublishViewStepsRequest(buffer_arg) {
|
|
32
|
+
return pulumi_resource_status_pb.PublishViewStepsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function serialize_pulumirpc_PublishViewStepsResponse(arg) {
|
|
36
|
+
if (!(arg instanceof pulumi_resource_status_pb.PublishViewStepsResponse)) {
|
|
37
|
+
throw new Error('Expected argument of type pulumirpc.PublishViewStepsResponse');
|
|
38
|
+
}
|
|
39
|
+
return Buffer.from(arg.serializeBinary());
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function deserialize_pulumirpc_PublishViewStepsResponse(buffer_arg) {
|
|
43
|
+
return pulumi_resource_status_pb.PublishViewStepsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
// ResourceStatus is an interface that can be called from a resource provider to update status about a resource.
|
|
48
|
+
var ResourceStatusService = exports.ResourceStatusService = {
|
|
49
|
+
// `PublishViewSteps` is used to publish a series of steps for a view resource.
|
|
50
|
+
// Views can be materialized via create and update steps, and more complex
|
|
51
|
+
// changes, such as replacements, can be modeled as a series of steps.
|
|
52
|
+
// The engine does not actually apply these steps, but rather flows them through
|
|
53
|
+
// the engine such that the view resources are written to state and the view
|
|
54
|
+
// resources are displayed in the UI.
|
|
55
|
+
publishViewSteps: {
|
|
56
|
+
path: '/pulumirpc.ResourceStatus/PublishViewSteps',
|
|
57
|
+
requestStream: false,
|
|
58
|
+
responseStream: false,
|
|
59
|
+
requestType: pulumi_resource_status_pb.PublishViewStepsRequest,
|
|
60
|
+
responseType: pulumi_resource_status_pb.PublishViewStepsResponse,
|
|
61
|
+
requestSerialize: serialize_pulumirpc_PublishViewStepsRequest,
|
|
62
|
+
requestDeserialize: deserialize_pulumirpc_PublishViewStepsRequest,
|
|
63
|
+
responseSerialize: serialize_pulumirpc_PublishViewStepsResponse,
|
|
64
|
+
responseDeserialize: deserialize_pulumirpc_PublishViewStepsResponse,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.ResourceStatusClient = grpc.makeGenericClientConstructor(ResourceStatusService);
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
// package: pulumirpc
|
|
2
|
+
// file: pulumi/resource_status.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
9
|
+
import * as pulumi_provider_pb from "./provider_pb";
|
|
10
|
+
|
|
11
|
+
export class PublishViewStepsRequest extends jspb.Message {
|
|
12
|
+
getToken(): string;
|
|
13
|
+
setToken(value: string): PublishViewStepsRequest;
|
|
14
|
+
clearStepsList(): void;
|
|
15
|
+
getStepsList(): Array<ViewStep>;
|
|
16
|
+
setStepsList(value: Array<ViewStep>): PublishViewStepsRequest;
|
|
17
|
+
addSteps(value?: ViewStep, index?: number): ViewStep;
|
|
18
|
+
|
|
19
|
+
serializeBinary(): Uint8Array;
|
|
20
|
+
toObject(includeInstance?: boolean): PublishViewStepsRequest.AsObject;
|
|
21
|
+
static toObject(includeInstance: boolean, msg: PublishViewStepsRequest): PublishViewStepsRequest.AsObject;
|
|
22
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
23
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
24
|
+
static serializeBinaryToWriter(message: PublishViewStepsRequest, writer: jspb.BinaryWriter): void;
|
|
25
|
+
static deserializeBinary(bytes: Uint8Array): PublishViewStepsRequest;
|
|
26
|
+
static deserializeBinaryFromReader(message: PublishViewStepsRequest, reader: jspb.BinaryReader): PublishViewStepsRequest;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace PublishViewStepsRequest {
|
|
30
|
+
export type AsObject = {
|
|
31
|
+
token: string,
|
|
32
|
+
stepsList: Array<ViewStep.AsObject>,
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class PublishViewStepsResponse extends jspb.Message {
|
|
37
|
+
|
|
38
|
+
serializeBinary(): Uint8Array;
|
|
39
|
+
toObject(includeInstance?: boolean): PublishViewStepsResponse.AsObject;
|
|
40
|
+
static toObject(includeInstance: boolean, msg: PublishViewStepsResponse): PublishViewStepsResponse.AsObject;
|
|
41
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
42
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
43
|
+
static serializeBinaryToWriter(message: PublishViewStepsResponse, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): PublishViewStepsResponse;
|
|
45
|
+
static deserializeBinaryFromReader(message: PublishViewStepsResponse, reader: jspb.BinaryReader): PublishViewStepsResponse;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace PublishViewStepsResponse {
|
|
49
|
+
export type AsObject = {
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class ViewStep extends jspb.Message {
|
|
54
|
+
getStatus(): ViewStep.Status;
|
|
55
|
+
setStatus(value: ViewStep.Status): ViewStep;
|
|
56
|
+
getError(): string;
|
|
57
|
+
setError(value: string): ViewStep;
|
|
58
|
+
getOp(): ViewStep.Op;
|
|
59
|
+
setOp(value: ViewStep.Op): ViewStep;
|
|
60
|
+
getType(): string;
|
|
61
|
+
setType(value: string): ViewStep;
|
|
62
|
+
getName(): string;
|
|
63
|
+
setName(value: string): ViewStep;
|
|
64
|
+
|
|
65
|
+
hasOld(): boolean;
|
|
66
|
+
clearOld(): void;
|
|
67
|
+
getOld(): ViewStepState | undefined;
|
|
68
|
+
setOld(value?: ViewStepState): ViewStep;
|
|
69
|
+
|
|
70
|
+
hasNew(): boolean;
|
|
71
|
+
clearNew(): void;
|
|
72
|
+
getNew(): ViewStepState | undefined;
|
|
73
|
+
setNew(value?: ViewStepState): ViewStep;
|
|
74
|
+
clearKeysList(): void;
|
|
75
|
+
getKeysList(): Array<string>;
|
|
76
|
+
setKeysList(value: Array<string>): ViewStep;
|
|
77
|
+
addKeys(value: string, index?: number): string;
|
|
78
|
+
clearDiffsList(): void;
|
|
79
|
+
getDiffsList(): Array<string>;
|
|
80
|
+
setDiffsList(value: Array<string>): ViewStep;
|
|
81
|
+
addDiffs(value: string, index?: number): string;
|
|
82
|
+
|
|
83
|
+
getDetailedDiffMap(): jspb.Map<string, pulumi_provider_pb.PropertyDiff>;
|
|
84
|
+
clearDetailedDiffMap(): void;
|
|
85
|
+
getHasDetailedDiff(): boolean;
|
|
86
|
+
setHasDetailedDiff(value: boolean): ViewStep;
|
|
87
|
+
|
|
88
|
+
serializeBinary(): Uint8Array;
|
|
89
|
+
toObject(includeInstance?: boolean): ViewStep.AsObject;
|
|
90
|
+
static toObject(includeInstance: boolean, msg: ViewStep): ViewStep.AsObject;
|
|
91
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
92
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
93
|
+
static serializeBinaryToWriter(message: ViewStep, writer: jspb.BinaryWriter): void;
|
|
94
|
+
static deserializeBinary(bytes: Uint8Array): ViewStep;
|
|
95
|
+
static deserializeBinaryFromReader(message: ViewStep, reader: jspb.BinaryReader): ViewStep;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export namespace ViewStep {
|
|
99
|
+
export type AsObject = {
|
|
100
|
+
status: ViewStep.Status,
|
|
101
|
+
error: string,
|
|
102
|
+
op: ViewStep.Op,
|
|
103
|
+
type: string,
|
|
104
|
+
name: string,
|
|
105
|
+
old?: ViewStepState.AsObject,
|
|
106
|
+
pb_new?: ViewStepState.AsObject,
|
|
107
|
+
keysList: Array<string>,
|
|
108
|
+
diffsList: Array<string>,
|
|
109
|
+
|
|
110
|
+
detailedDiffMap: Array<[string, pulumi_provider_pb.PropertyDiff.AsObject]>,
|
|
111
|
+
hasDetailedDiff: boolean,
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export enum Op {
|
|
115
|
+
UNSPECIFIED = 0,
|
|
116
|
+
SAME = 1,
|
|
117
|
+
CREATE = 2,
|
|
118
|
+
UPDATE = 3,
|
|
119
|
+
DELETE = 4,
|
|
120
|
+
REPLACE = 5,
|
|
121
|
+
CREATE_REPLACEMENT = 6,
|
|
122
|
+
DELETE_REPLACED = 7,
|
|
123
|
+
READ = 8,
|
|
124
|
+
READ_REPLACEMENT = 9,
|
|
125
|
+
REFRESH = 10,
|
|
126
|
+
READ_DISCARD = 11,
|
|
127
|
+
DISCARD_REPLACED = 12,
|
|
128
|
+
REMOVE_PENDING_REPLACE = 13,
|
|
129
|
+
IMPORT = 14,
|
|
130
|
+
IMPORT_REPLACEMENT = 15,
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export enum Status {
|
|
134
|
+
OK = 0,
|
|
135
|
+
PARTIAL_FAILURE = 1,
|
|
136
|
+
UNKNOWN = 2,
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export class ViewStepState extends jspb.Message {
|
|
142
|
+
getType(): string;
|
|
143
|
+
setType(value: string): ViewStepState;
|
|
144
|
+
getName(): string;
|
|
145
|
+
setName(value: string): ViewStepState;
|
|
146
|
+
getParentType(): string;
|
|
147
|
+
setParentType(value: string): ViewStepState;
|
|
148
|
+
getParentName(): string;
|
|
149
|
+
setParentName(value: string): ViewStepState;
|
|
150
|
+
|
|
151
|
+
hasInputs(): boolean;
|
|
152
|
+
clearInputs(): void;
|
|
153
|
+
getInputs(): google_protobuf_struct_pb.Struct | undefined;
|
|
154
|
+
setInputs(value?: google_protobuf_struct_pb.Struct): ViewStepState;
|
|
155
|
+
|
|
156
|
+
hasOutputs(): boolean;
|
|
157
|
+
clearOutputs(): void;
|
|
158
|
+
getOutputs(): google_protobuf_struct_pb.Struct | undefined;
|
|
159
|
+
setOutputs(value?: google_protobuf_struct_pb.Struct): ViewStepState;
|
|
160
|
+
|
|
161
|
+
serializeBinary(): Uint8Array;
|
|
162
|
+
toObject(includeInstance?: boolean): ViewStepState.AsObject;
|
|
163
|
+
static toObject(includeInstance: boolean, msg: ViewStepState): ViewStepState.AsObject;
|
|
164
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
165
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
166
|
+
static serializeBinaryToWriter(message: ViewStepState, writer: jspb.BinaryWriter): void;
|
|
167
|
+
static deserializeBinary(bytes: Uint8Array): ViewStepState;
|
|
168
|
+
static deserializeBinaryFromReader(message: ViewStepState, reader: jspb.BinaryReader): ViewStepState;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export namespace ViewStepState {
|
|
172
|
+
export type AsObject = {
|
|
173
|
+
type: string,
|
|
174
|
+
name: string,
|
|
175
|
+
parentType: string,
|
|
176
|
+
parentName: string,
|
|
177
|
+
inputs?: google_protobuf_struct_pb.Struct.AsObject,
|
|
178
|
+
outputs?: google_protobuf_struct_pb.Struct.AsObject,
|
|
179
|
+
}
|
|
180
|
+
}
|