2022-07-12 13:45:03 +00:00
|
|
|
// source: pulumi/analyzer.proto
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
/**
|
|
|
|
* @fileoverview
|
|
|
|
* @enhanceable
|
2022-05-31 14:41:40 +00:00
|
|
|
* @suppress {missingRequire} reports error on implicit type usages.
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @public
|
|
|
|
*/
|
|
|
|
// GENERATED CODE -- DO NOT EDIT!
|
2022-05-31 14:41:40 +00:00
|
|
|
/* eslint-disable */
|
|
|
|
// @ts-nocheck
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
|
|
|
|
var jspb = require('google-protobuf');
|
|
|
|
var goog = jspb;
|
2023-11-10 13:31:14 +00:00
|
|
|
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
|
2022-07-12 13:45:03 +00:00
|
|
|
var pulumi_plugin_pb = require('./plugin_pb.js');
|
|
|
|
goog.object.extend(proto, pulumi_plugin_pb);
|
2017-12-01 21:50:32 +00:00
|
|
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
2020-02-28 11:53:47 +00:00
|
|
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
2020-02-28 11:53:47 +00:00
|
|
|
goog.object.extend(proto, google_protobuf_struct_pb);
|
2019-06-10 22:20:22 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzeDiagnostic', null, global);
|
2017-09-22 02:18:21 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzeRequest', null, global);
|
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzeResponse', null, global);
|
2019-10-25 15:29:02 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzeStackRequest', null, global);
|
2019-06-24 00:51:15 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzerInfo', null, global);
|
2020-02-08 00:11:34 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzerPropertyDependencies', null, global);
|
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzerProviderResource', null, global);
|
2019-10-25 15:29:02 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzerResource', null, global);
|
2020-02-08 00:11:34 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzerResourceOptions', null, global);
|
|
|
|
goog.exportSymbol('proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts', null, global);
|
2020-03-08 21:11:55 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.ConfigureAnalyzerRequest', null, global);
|
2019-06-24 00:51:15 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.EnforcementLevel', null, global);
|
2020-03-08 21:11:55 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.PolicyConfig', null, global);
|
|
|
|
goog.exportSymbol('proto.pulumirpc.PolicyConfigSchema', null, global);
|
2019-06-24 00:51:15 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.PolicyInfo', null, global);
|
2023-10-09 18:31:17 +00:00
|
|
|
goog.exportSymbol('proto.pulumirpc.RemediateResponse', null, global);
|
|
|
|
goog.exportSymbol('proto.pulumirpc.Remediation', null, global);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest = function(opt_data) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2017-09-22 02:18:21 +00:00
|
|
|
goog.inherits(proto.pulumirpc.AnalyzeRequest, jspb.Message);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.displayName = 'proto.pulumirpc.AnalyzeRequest';
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
}
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzerResource.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzerResource, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.displayName = 'proto.pulumirpc.AnalyzerResource';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzerResourceOptions.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzerResourceOptions, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.displayName = 'proto.pulumirpc.AnalyzerResourceOptions';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.displayName = 'proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzerProviderResource, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.displayName = 'proto.pulumirpc.AnalyzerProviderResource';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzerPropertyDependencies.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzerPropertyDependencies, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.displayName = 'proto.pulumirpc.AnalyzerPropertyDependencies';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzeStackRequest.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzeStackRequest, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.displayName = 'proto.pulumirpc.AnalyzeStackRequest';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeResponse = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzeResponse.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzeResponse, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeResponse.displayName = 'proto.pulumirpc.AnalyzeResponse';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzeDiagnostic.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzeDiagnostic, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.displayName = 'proto.pulumirpc.AnalyzeDiagnostic';
|
|
|
|
}
|
2023-10-09 18:31:17 +00:00
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.Remediation, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.displayName = 'proto.pulumirpc.Remediation';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RemediateResponse.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.RemediateResponse, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.displayName = 'proto.pulumirpc.RemediateResponse';
|
|
|
|
}
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.AnalyzerInfo.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.AnalyzerInfo, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.displayName = 'proto.pulumirpc.AnalyzerInfo';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.PolicyInfo, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.displayName = 'proto.pulumirpc.PolicyInfo';
|
|
|
|
}
|
2020-03-08 21:11:55 +00:00
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.PolicyConfigSchema.repeatedFields_, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.PolicyConfigSchema, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.displayName = 'proto.pulumirpc.PolicyConfigSchema';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.PolicyConfig, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.displayName = 'proto.pulumirpc.PolicyConfig';
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
|
|
* valid.
|
|
|
|
* @extends {jspb.Message}
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.pulumirpc.ConfigureAnalyzerRequest, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.displayName = 'proto.pulumirpc.ConfigureAnalyzerRequest';
|
|
|
|
}
|
2020-02-28 11:53:47 +00:00
|
|
|
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzeRequest.toObject(opt_includeInstance, this);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* http://goto/soy-param-migration
|
2017-09-22 02:18:21 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeRequest} msg The msg instance to transform.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {!Object}
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.toObject = function(includeInstance, msg) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var f, obj = {
|
Make more progress on the new deployment model
This change restructures a lot more pertaining to deployments, snapshots,
environments, and the like.
The most notable change is that the notion of a deploy.Source is introduced,
which splits the responsibility between the deploy.Plan -- which simply
understands how to compute and carry out deployment plans -- and the idea
of something that can produce new objects on-demand during deployment.
The primary such implementation is evalSource, which encapsulates an
interpreter and takes a package, args, and config map, and proceeds to run
the interpreter in a distinct goroutine. It synchronizes as needed to
poke and prod the interpreter along its path to create new resource objects.
There are two other sources, however. First, a nullSource, which simply
refuses to create new objects. This can be handy when writing isolated
tests but is also used to simulate the "empty" environment as necessary to
do a complete teardown of the target environment. Second, a fixedSource,
which takes a pre-computed array of objects, and hands those, in order, to
the planning engine; this is mostly useful as a testing technique.
Boatloads of code is now changed and updated in the various CLI commands.
This further chugs along towards pulumi/lumi#90. The end is in sight.
2017-06-10 18:50:47 +00:00
|
|
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
2019-11-21 21:01:15 +00:00
|
|
|
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
|
|
urn: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2020-02-08 00:11:34 +00:00
|
|
|
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
|
|
options: (f = msg.getOptions()) && proto.pulumirpc.AnalyzerResourceOptions.toObject(includeInstance, f),
|
|
|
|
provider: (f = msg.getProvider()) && proto.pulumirpc.AnalyzerProviderResource.toObject(includeInstance, f)
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.deserializeBinary = function(bytes) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2017-09-22 02:18:21 +00:00
|
|
|
var msg = new proto.pulumirpc.AnalyzeRequest;
|
|
|
|
return proto.pulumirpc.AnalyzeRequest.deserializeBinaryFromReader(msg, reader);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeRequest} msg The message object to deserialize into.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setType(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new google_protobuf_struct_pb.Struct;
|
|
|
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
|
|
msg.setProperties(value);
|
|
|
|
break;
|
2019-11-21 21:01:15 +00:00
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setUrn(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setName(value);
|
|
|
|
break;
|
2020-02-08 00:11:34 +00:00
|
|
|
case 5:
|
|
|
|
var value = new proto.pulumirpc.AnalyzerResourceOptions;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzerResourceOptions.deserializeBinaryFromReader);
|
|
|
|
msg.setOptions(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = new proto.pulumirpc.AnalyzerProviderResource;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzerProviderResource.deserializeBinaryFromReader);
|
|
|
|
msg.setProvider(value);
|
|
|
|
break;
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.serializeBinary = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.serializeBinaryToWriter(this, writer);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeRequest} message
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.serializeBinaryToWriter = function(message, writer) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var f = undefined;
|
|
|
|
f = message.getType();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProperties();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
2019-11-21 21:01:15 +00:00
|
|
|
f = message.getUrn();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2020-02-08 00:11:34 +00:00
|
|
|
f = message.getOptions();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
5,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProvider();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
6,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string type = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.getType = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.setType = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional google.protobuf.Struct properties = 2;
|
|
|
|
* @return {?proto.google.protobuf.Struct}
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.getProperties = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
|
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.setProperties = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.clearProperties = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setProperties(undefined);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.hasProperties = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-11-21 21:01:15 +00:00
|
|
|
/**
|
|
|
|
* optional string urn = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.getUrn = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2019-11-21 21:01:15 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.setUrn = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
2019-11-21 21:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string name = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.getName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2019-11-21 21:01:15 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.setName = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
2019-11-21 21:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-08 00:11:34 +00:00
|
|
|
/**
|
|
|
|
* optional AnalyzerResourceOptions options = 5;
|
|
|
|
* @return {?proto.pulumirpc.AnalyzerResourceOptions}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.getOptions = function() {
|
|
|
|
return /** @type{?proto.pulumirpc.AnalyzerResourceOptions} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.pulumirpc.AnalyzerResourceOptions, 5));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.pulumirpc.AnalyzerResourceOptions|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.setOptions = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 5, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.clearOptions = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setOptions(undefined);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.hasOptions = function() {
|
|
|
|
return jspb.Message.getField(this, 5) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional AnalyzerProviderResource provider = 6;
|
|
|
|
* @return {?proto.pulumirpc.AnalyzerProviderResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.getProvider = function() {
|
|
|
|
return /** @type{?proto.pulumirpc.AnalyzerProviderResource} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.pulumirpc.AnalyzerProviderResource, 6));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.pulumirpc.AnalyzerProviderResource|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.setProvider = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 6, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeRequest} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.clearProvider = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setProvider(undefined);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeRequest.prototype.hasProvider = function() {
|
|
|
|
return jspb.Message.getField(this, 6) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
|
2020-02-08 00:11:34 +00:00
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.repeatedFields_ = [8];
|
|
|
|
|
2019-10-25 15:29:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2019-10-25 15:29:02 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2019-10-25 15:29:02 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-10-25 15:29:02 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzerResource.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2019-10-25 15:29:02 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResource} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
2019-11-21 21:01:15 +00:00
|
|
|
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
|
|
urn: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2020-02-08 00:11:34 +00:00
|
|
|
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
|
|
options: (f = msg.getOptions()) && proto.pulumirpc.AnalyzerResourceOptions.toObject(includeInstance, f),
|
|
|
|
provider: (f = msg.getProvider()) && proto.pulumirpc.AnalyzerProviderResource.toObject(includeInstance, f),
|
|
|
|
parent: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
2020-02-28 11:53:47 +00:00
|
|
|
dependenciesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
|
2020-02-08 00:11:34 +00:00
|
|
|
propertydependenciesMap: (f = msg.getPropertydependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.AnalyzerPropertyDependencies.toObject) : []
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzerResource;
|
|
|
|
return proto.pulumirpc.AnalyzerResource.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResource} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setType(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new google_protobuf_struct_pb.Struct;
|
|
|
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
|
|
msg.setProperties(value);
|
|
|
|
break;
|
2019-11-21 21:01:15 +00:00
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setUrn(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setName(value);
|
|
|
|
break;
|
2020-02-08 00:11:34 +00:00
|
|
|
case 5:
|
|
|
|
var value = new proto.pulumirpc.AnalyzerResourceOptions;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzerResourceOptions.deserializeBinaryFromReader);
|
|
|
|
msg.setOptions(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = new proto.pulumirpc.AnalyzerProviderResource;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzerProviderResource.deserializeBinaryFromReader);
|
|
|
|
msg.setProvider(value);
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setParent(value);
|
|
|
|
break;
|
|
|
|
case 8:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addDependencies(value);
|
|
|
|
break;
|
|
|
|
case 9:
|
|
|
|
var value = msg.getPropertydependenciesMap();
|
|
|
|
reader.readMessage(value, function(message, reader) {
|
2020-02-28 11:53:47 +00:00
|
|
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.AnalyzerPropertyDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.AnalyzerPropertyDependencies());
|
2020-02-08 00:11:34 +00:00
|
|
|
});
|
|
|
|
break;
|
2019-10-25 15:29:02 +00:00
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzerResource.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResource} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getType();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProperties();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
2019-11-21 21:01:15 +00:00
|
|
|
f = message.getUrn();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2020-02-08 00:11:34 +00:00
|
|
|
f = message.getOptions();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
5,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProvider();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
6,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getParent();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
7,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDependenciesList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
8,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getPropertydependenciesMap(true);
|
|
|
|
if (f && f.getLength() > 0) {
|
|
|
|
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.AnalyzerPropertyDependencies.serializeBinaryToWriter);
|
|
|
|
}
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string type = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getType = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2019-10-25 15:29:02 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setType = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional google.protobuf.Struct properties = 2;
|
|
|
|
* @return {?proto.google.protobuf.Struct}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getProperties = function() {
|
|
|
|
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
|
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2019-10-25 15:29:02 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setProperties = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2019-10-25 15:29:02 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.clearProperties = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setProperties(undefined);
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2019-10-25 15:29:02 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.hasProperties = function() {
|
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-11-21 21:01:15 +00:00
|
|
|
/**
|
|
|
|
* optional string urn = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getUrn = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2019-11-21 21:01:15 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setUrn = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
2019-11-21 21:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string name = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2019-11-21 21:01:15 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setName = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
2019-11-21 21:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-08 00:11:34 +00:00
|
|
|
/**
|
|
|
|
* optional AnalyzerResourceOptions options = 5;
|
|
|
|
* @return {?proto.pulumirpc.AnalyzerResourceOptions}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getOptions = function() {
|
|
|
|
return /** @type{?proto.pulumirpc.AnalyzerResourceOptions} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.pulumirpc.AnalyzerResourceOptions, 5));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.pulumirpc.AnalyzerResourceOptions|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setOptions = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 5, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.clearOptions = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setOptions(undefined);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.hasOptions = function() {
|
|
|
|
return jspb.Message.getField(this, 5) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional AnalyzerProviderResource provider = 6;
|
|
|
|
* @return {?proto.pulumirpc.AnalyzerProviderResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getProvider = function() {
|
|
|
|
return /** @type{?proto.pulumirpc.AnalyzerProviderResource} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.pulumirpc.AnalyzerProviderResource, 6));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.pulumirpc.AnalyzerProviderResource|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setProvider = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 6, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.clearProvider = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setProvider(undefined);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.hasProvider = function() {
|
|
|
|
return jspb.Message.getField(this, 6) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string parent = 7;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getParent = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setParent = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 7, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string dependencies = 8;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<string>}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getDependenciesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.setDependenciesList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setField(this, 8, value || []);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {string} value
|
2020-02-08 00:11:34 +00:00
|
|
|
* @param {number=} opt_index
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.addDependencies = function(value, opt_index) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.clearDependenciesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setDependenciesList([]);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* map<string, AnalyzerPropertyDependencies> propertyDependencies = 9;
|
|
|
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
|
|
* empty, instead returning `undefined`
|
|
|
|
* @return {!jspb.Map<string,!proto.pulumirpc.AnalyzerPropertyDependencies>}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.getPropertydependenciesMap = function(opt_noLazyCreate) {
|
|
|
|
return /** @type {!jspb.Map<string,!proto.pulumirpc.AnalyzerPropertyDependencies>} */ (
|
|
|
|
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears values from the map. The map will be non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResource.prototype.clearPropertydependenciesMap = function() {
|
|
|
|
this.getPropertydependenciesMap().clear();
|
2020-02-28 11:53:47 +00:00
|
|
|
return this;};
|
2020-02-08 00:11:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.repeatedFields_ = [2,5,6];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2020-02-08 00:11:34 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2020-02-08 00:11:34 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2020-02-08 00:11:34 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzerResourceOptions.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2020-02-08 00:11:34 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResourceOptions} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
2020-02-28 11:53:47 +00:00
|
|
|
protect: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
|
|
ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
|
|
deletebeforereplace: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
|
|
deletebeforereplacedefined: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
|
|
additionalsecretoutputsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
|
|
aliasesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
2020-02-08 00:11:34 +00:00
|
|
|
customtimeouts: (f = msg.getCustomtimeouts()) && proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.toObject(includeInstance, f)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzerResourceOptions;
|
|
|
|
return proto.pulumirpc.AnalyzerResourceOptions.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResourceOptions} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
|
|
msg.setProtect(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addIgnorechanges(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
|
|
msg.setDeletebeforereplace(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
|
|
msg.setDeletebeforereplacedefined(value);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addAdditionalsecretoutputs(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addAliases(value);
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
var value = new proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.deserializeBinaryFromReader);
|
|
|
|
msg.setCustomtimeouts(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResourceOptions} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getProtect();
|
|
|
|
if (f) {
|
|
|
|
writer.writeBool(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getIgnorechangesList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDeletebeforereplace();
|
|
|
|
if (f) {
|
|
|
|
writer.writeBool(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDeletebeforereplacedefined();
|
|
|
|
if (f) {
|
|
|
|
writer.writeBool(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getAdditionalsecretoutputsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
5,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getAliasesList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
6,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getCustomtimeouts();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
7,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2020-02-08 00:11:34 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2020-02-08 00:11:34 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2020-02-08 00:11:34 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2020-02-08 00:11:34 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
2020-02-28 11:53:47 +00:00
|
|
|
create: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
|
|
update: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
|
|
pb_delete: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts;
|
|
|
|
return proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {number} */ (reader.readDouble());
|
|
|
|
msg.setCreate(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {number} */ (reader.readDouble());
|
|
|
|
msg.setUpdate(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {number} */ (reader.readDouble());
|
|
|
|
msg.setDelete(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getCreate();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeDouble(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getUpdate();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeDouble(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDelete();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeDouble(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional double create = 1;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.getCreate = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.setCreate = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3FloatField(this, 1, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional double update = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.getUpdate = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.setUpdate = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3FloatField(this, 2, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional double delete = 3;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.getDelete = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {number} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts.prototype.setDelete = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3FloatField(this, 3, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional bool protect = 1;
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getProtect = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {boolean} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setProtect = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3BooleanField(this, 1, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string ignoreChanges = 2;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<string>}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getIgnorechangesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setIgnorechangesList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setField(this, 2, value || []);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {string} value
|
2020-02-08 00:11:34 +00:00
|
|
|
* @param {number=} opt_index
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.addIgnorechanges = function(value, opt_index) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.clearIgnorechangesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setIgnorechangesList([]);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional bool deleteBeforeReplace = 3;
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getDeletebeforereplace = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {boolean} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setDeletebeforereplace = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional bool deleteBeforeReplaceDefined = 4;
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getDeletebeforereplacedefined = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {boolean} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setDeletebeforereplacedefined = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string additionalSecretOutputs = 5;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<string>}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getAdditionalsecretoutputsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setAdditionalsecretoutputsList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setField(this, 5, value || []);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {string} value
|
2020-02-08 00:11:34 +00:00
|
|
|
* @param {number=} opt_index
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.addAdditionalsecretoutputs = function(value, opt_index) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.clearAdditionalsecretoutputsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setAdditionalsecretoutputsList([]);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string aliases = 6;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<string>}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getAliasesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setAliasesList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setField(this, 6, value || []);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {string} value
|
2020-02-08 00:11:34 +00:00
|
|
|
* @param {number=} opt_index
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.addAliases = function(value, opt_index) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.clearAliasesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setAliasesList([]);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional CustomTimeouts customTimeouts = 7;
|
|
|
|
* @return {?proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.getCustomtimeouts = function() {
|
|
|
|
return /** @type{?proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts, 7));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.pulumirpc.AnalyzerResourceOptions.CustomTimeouts|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.setCustomtimeouts = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 7, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResourceOptions} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.clearCustomtimeouts = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setCustomtimeouts(undefined);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerResourceOptions.prototype.hasCustomtimeouts = function() {
|
|
|
|
return jspb.Message.getField(this, 7) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2020-02-08 00:11:34 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2020-02-08 00:11:34 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2020-02-08 00:11:34 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzerProviderResource.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2020-02-08 00:11:34 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerProviderResource} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
|
|
urn: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
name: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzerProviderResource;
|
|
|
|
return proto.pulumirpc.AnalyzerProviderResource.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerProviderResource} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setType(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new google_protobuf_struct_pb.Struct;
|
|
|
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
|
|
msg.setProperties(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setUrn(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setName(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerProviderResource} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getType();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProperties();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getUrn();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string type = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.getType = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.setType = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional google.protobuf.Struct properties = 2;
|
|
|
|
* @return {?proto.google.protobuf.Struct}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.getProperties = function() {
|
|
|
|
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
|
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.setProperties = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.clearProperties = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setProperties(undefined);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {boolean}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.hasProperties = function() {
|
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string urn = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.getUrn = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.setUrn = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string name = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.getName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerProviderResource} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerProviderResource.prototype.setName = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.repeatedFields_ = [1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2020-02-08 00:11:34 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2020-02-08 00:11:34 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2020-02-08 00:11:34 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzerPropertyDependencies.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2020-02-08 00:11:34 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerPropertyDependencies} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
2020-02-28 11:53:47 +00:00
|
|
|
urnsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerPropertyDependencies}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzerPropertyDependencies;
|
|
|
|
return proto.pulumirpc.AnalyzerPropertyDependencies.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerPropertyDependencies} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerPropertyDependencies}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addUrns(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerPropertyDependencies} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getUrnsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string urns = 1;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<string>}
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.prototype.getUrnsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerPropertyDependencies} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.prototype.setUrnsList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setField(this, 1, value || []);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {string} value
|
2020-02-08 00:11:34 +00:00
|
|
|
* @param {number=} opt_index
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzerPropertyDependencies} returns this
|
2020-02-08 00:11:34 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.prototype.addUrns = function(value, opt_index) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerPropertyDependencies} returns this
|
|
|
|
*/
|
2020-02-08 00:11:34 +00:00
|
|
|
proto.pulumirpc.AnalyzerPropertyDependencies.prototype.clearUrnsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setUrnsList([]);
|
2020-02-08 00:11:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-10-25 15:29:02 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.repeatedFields_ = [1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2019-10-25 15:29:02 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2019-10-25 15:29:02 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-10-25 15:29:02 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzeStackRequest.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2019-10-25 15:29:02 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzeStackRequest} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
resourcesList: jspb.Message.toObjectList(msg.getResourcesList(),
|
|
|
|
proto.pulumirpc.AnalyzerResource.toObject, includeInstance)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeStackRequest}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzeStackRequest;
|
|
|
|
return proto.pulumirpc.AnalyzeStackRequest.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzeStackRequest} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeStackRequest}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = new proto.pulumirpc.AnalyzerResource;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzerResource.deserializeBinaryFromReader);
|
|
|
|
msg.addResources(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzeStackRequest} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getResourcesList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedMessage(
|
|
|
|
1,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.AnalyzerResource.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated AnalyzerResource resources = 1;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<!proto.pulumirpc.AnalyzerResource>}
|
2019-10-25 15:29:02 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.prototype.getResourcesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type{!Array<!proto.pulumirpc.AnalyzerResource>} */ (
|
2019-10-25 15:29:02 +00:00
|
|
|
jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.AnalyzerResource, 1));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<!proto.pulumirpc.AnalyzerResource>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeStackRequest} returns this
|
|
|
|
*/
|
2019-10-25 15:29:02 +00:00
|
|
|
proto.pulumirpc.AnalyzeStackRequest.prototype.setResourcesList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerResource=} opt_value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerResource}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeStackRequest.prototype.addResources = function(opt_value, opt_index) {
|
|
|
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pulumirpc.AnalyzerResource, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeStackRequest} returns this
|
|
|
|
*/
|
2019-10-25 15:29:02 +00:00
|
|
|
proto.pulumirpc.AnalyzeStackRequest.prototype.clearResourcesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setResourcesList([]);
|
2019-10-25 15:29:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.repeatedFields_ = [2];
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzeResponse.toObject(opt_includeInstance, this);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* http://goto/soy-param-migration
|
2017-09-22 02:18:21 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeResponse} msg The msg instance to transform.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {!Object}
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.toObject = function(includeInstance, msg) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var f, obj = {
|
2019-06-10 22:20:22 +00:00
|
|
|
diagnosticsList: jspb.Message.toObjectList(msg.getDiagnosticsList(),
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.toObject, includeInstance)
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeResponse}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.deserializeBinary = function(bytes) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2017-09-22 02:18:21 +00:00
|
|
|
var msg = new proto.pulumirpc.AnalyzeResponse;
|
|
|
|
return proto.pulumirpc.AnalyzeResponse.deserializeBinaryFromReader(msg, reader);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeResponse} msg The message object to deserialize into.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeResponse}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
2019-06-10 22:20:22 +00:00
|
|
|
case 2:
|
|
|
|
var value = new proto.pulumirpc.AnalyzeDiagnostic;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.AnalyzeDiagnostic.deserializeBinaryFromReader);
|
|
|
|
msg.addDiagnostics(value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.prototype.serializeBinary = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.serializeBinaryToWriter(this, writer);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2017-09-22 02:18:21 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeResponse} message
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2017-09-22 02:18:21 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.serializeBinaryToWriter = function(message, writer) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var f = undefined;
|
2019-06-10 22:20:22 +00:00
|
|
|
f = message.getDiagnosticsList();
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedMessage(
|
2019-06-10 22:20:22 +00:00
|
|
|
2,
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
f,
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.serializeBinaryToWriter
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-06-10 22:20:22 +00:00
|
|
|
* repeated AnalyzeDiagnostic diagnostics = 2;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<!proto.pulumirpc.AnalyzeDiagnostic>}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.prototype.getDiagnosticsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type{!Array<!proto.pulumirpc.AnalyzeDiagnostic>} */ (
|
2019-06-10 22:20:22 +00:00
|
|
|
jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.AnalyzeDiagnostic, 2));
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<!proto.pulumirpc.AnalyzeDiagnostic>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeResponse} returns this
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.prototype.setDiagnosticsList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-06-10 22:20:22 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeDiagnostic=} opt_value
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {number=} opt_index
|
2019-06-10 22:20:22 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.prototype.addDiagnostics = function(opt_value, opt_index) {
|
|
|
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.pulumirpc.AnalyzeDiagnostic, opt_index);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeResponse} returns this
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeResponse.prototype.clearDiagnosticsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setDiagnosticsList([]);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-10 22:20:22 +00:00
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.repeatedFields_ = [6];
|
2019-06-10 22:20:22 +00:00
|
|
|
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzeDiagnostic.toObject(opt_includeInstance, this);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* http://goto/soy-param-migration
|
2019-06-10 22:20:22 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeDiagnostic} msg The msg instance to transform.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {!Object}
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.toObject = function(includeInstance, msg) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var f, obj = {
|
2019-06-13 23:12:08 +00:00
|
|
|
policyname: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
policypackname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
policypackversion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
|
|
message: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
2020-02-28 11:53:47 +00:00
|
|
|
tagsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
2019-11-21 21:01:15 +00:00
|
|
|
enforcementlevel: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
|
|
urn: jspb.Message.getFieldWithDefault(msg, 8, "")
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-06-10 22:20:22 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.deserializeBinary = function(bytes) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-06-10 22:20:22 +00:00
|
|
|
var msg = new proto.pulumirpc.AnalyzeDiagnostic;
|
|
|
|
return proto.pulumirpc.AnalyzeDiagnostic.deserializeBinaryFromReader(msg, reader);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-06-10 22:20:22 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeDiagnostic} msg The message object to deserialize into.
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-06-10 22:20:22 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.deserializeBinaryFromReader = function(msg, reader) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-06-13 23:12:08 +00:00
|
|
|
msg.setPolicyname(value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-06-13 23:12:08 +00:00
|
|
|
msg.setPolicypackname(value);
|
2019-06-10 22:20:22 +00:00
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-06-13 23:12:08 +00:00
|
|
|
msg.setPolicypackversion(value);
|
2019-06-10 22:20:22 +00:00
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-06-13 23:12:08 +00:00
|
|
|
msg.setDescription(value);
|
2019-06-10 22:20:22 +00:00
|
|
|
break;
|
|
|
|
case 5:
|
2019-06-13 23:12:08 +00:00
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setMessage(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addTags(value);
|
|
|
|
break;
|
|
|
|
case 7:
|
2019-06-24 00:51:15 +00:00
|
|
|
var value = /** @type {!proto.pulumirpc.EnforcementLevel} */ (reader.readEnum());
|
2019-06-10 22:20:22 +00:00
|
|
|
msg.setEnforcementlevel(value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
break;
|
2019-11-21 21:01:15 +00:00
|
|
|
case 8:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setUrn(value);
|
|
|
|
break;
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.serializeBinary = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.serializeBinaryToWriter(this, writer);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-06-10 22:20:22 +00:00
|
|
|
* @param {!proto.pulumirpc.AnalyzeDiagnostic} message
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
Implement components
This change implements core support for "components" in the Pulumi
Fabric. This work is described further in pulumi/pulumi#340, where
we are still discussing some of the finer points.
In a nutshell, resources no longer imply external providers. It's
entirely possible to have a resource that logically represents
something but without having a physical manifestation that needs to
be tracked and managed by our typical CRUD operations.
For example, the aws/serverless/Function helper is one such type.
It aggregates Lambda-related resources and exposes a nice interface.
All of the Pulumi Cloud Framework resources are also examples.
To indicate that a resource does participate in the usual CRUD resource
provider, it simply derives from ExternalResource instead of Resource.
All resources now have the ability to adopt children. This is purely
a metadata/tagging thing, and will help us roll up displays, provide
attribution to the developer, and even hide aspects of the resource
graph as appropriate (e.g., when they are implementation details).
Our use of this capability is ultra limited right now; in fact, the
only place we display children is in the CLI output. For instance:
+ aws:serverless:Function: (create)
[urn=urn:pulumi:demo::serverless::aws:serverless:Function::mylambda]
=> urn:pulumi:demo::serverless::aws:iam/role:Role::mylambda-iamrole
=> urn:pulumi:demo::serverless::aws:iam/rolePolicyAttachment:RolePolicyAttachment::mylambda-iampolicy-0
=> urn:pulumi:demo::serverless::aws:lambda/function:Function::mylambda
The bit indicating whether a resource is external or not is tracked
in the resulting checkpoint file, along with any of its children.
2017-10-14 21:18:43 +00:00
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.serializeBinaryToWriter = function(message, writer) {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
var f = undefined;
|
2019-06-13 23:12:08 +00:00
|
|
|
f = message.getPolicyname();
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-06-13 23:12:08 +00:00
|
|
|
f = message.getPolicypackname();
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-06-13 23:12:08 +00:00
|
|
|
f = message.getPolicypackversion();
|
2019-06-10 22:20:22 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-06-13 23:12:08 +00:00
|
|
|
f = message.getDescription();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getMessage();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
5,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-06-10 22:20:22 +00:00
|
|
|
f = message.getTagsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
2019-06-13 23:12:08 +00:00
|
|
|
6,
|
2019-06-10 22:20:22 +00:00
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getEnforcementlevel();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
2019-06-13 23:12:08 +00:00
|
|
|
7,
|
2019-06-10 22:20:22 +00:00
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-11-21 21:01:15 +00:00
|
|
|
f = message.getUrn();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
8,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-06-10 22:20:22 +00:00
|
|
|
/**
|
2019-06-13 23:12:08 +00:00
|
|
|
* optional string policyName = 1;
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getPolicyname = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setPolicyname = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-06-13 23:12:08 +00:00
|
|
|
* optional string policyPackName = 2;
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getPolicypackname = function() {
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setPolicypackname = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
Add basic analyzer support
This change introduces the basic requirements for analyzers, as per
pulumi/coconut#119. In particular, an analyzer can implement either,
or both, of the RPC methods, Analyze and AnalyzeResource. The former
is meant to check an overall deployment (e.g., to ensure it has been
signed off on) and the latter is to check individual resources (e.g.,
to ensure properties of them are correct, such as checking style,
security, etc. rules). These run simultaneous to overall checking.
Analyzers are loaded as plugins just like providers are. The difference
is mainly in their naming ("analyzer-" prefix, rather than "resource-"),
and the RPC methods that they support.
This isn't 100% functional since we need a way to specify at the CLI
that a particular analyzer should be run, in addition to a way of
recording which analyzers certain projects should use in their manifests.
2017-03-11 07:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-06-10 22:20:22 +00:00
|
|
|
/**
|
2019-06-13 23:12:08 +00:00
|
|
|
* optional string policyPackVersion = 3;
|
2019-06-10 22:20:22 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getPolicypackversion = function() {
|
2019-06-10 22:20:22 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setPolicypackversion = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-06-13 23:12:08 +00:00
|
|
|
* optional string description = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getDescription = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setDescription = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
2019-06-13 23:12:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string message = 5;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getMessage = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-13 23:12:08 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setMessage = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 5, value);
|
2019-06-13 23:12:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string tags = 6;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<string>}
|
2019-06-10 22:20:22 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getTagsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setTagsList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setField(this, 6, value || []);
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {string} value
|
2019-06-10 22:20:22 +00:00
|
|
|
* @param {number=} opt_index
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
2019-06-10 22:20:22 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.addTags = function(value, opt_index) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.clearTagsList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setTagsList([]);
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-06-24 00:51:15 +00:00
|
|
|
* optional EnforcementLevel enforcementLevel = 7;
|
|
|
|
* @return {!proto.pulumirpc.EnforcementLevel}
|
2019-06-10 22:20:22 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getEnforcementlevel = function() {
|
2019-06-24 00:51:15 +00:00
|
|
|
return /** @type {!proto.pulumirpc.EnforcementLevel} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!proto.pulumirpc.EnforcementLevel} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-06-10 22:20:22 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setEnforcementlevel = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3EnumField(this, 7, value);
|
2019-06-10 22:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-11-21 21:01:15 +00:00
|
|
|
/**
|
|
|
|
* optional string urn = 8;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.getUrn = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzeDiagnostic} returns this
|
|
|
|
*/
|
2019-11-21 21:01:15 +00:00
|
|
|
proto.pulumirpc.AnalyzeDiagnostic.prototype.setUrn = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 8, value);
|
2019-11-21 21:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-06-24 00:51:15 +00:00
|
|
|
|
2023-10-09 18:31:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* Optional fields that are not set will be set to undefined.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.Remediation.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.Remediation} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
policyname: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
policypackname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
policypackversion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
|
|
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
|
|
diagnostic: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.Remediation}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.Remediation;
|
|
|
|
return proto.pulumirpc.Remediation.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.Remediation} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.Remediation}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setPolicyname(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setPolicypackname(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setPolicypackversion(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setDescription(value);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
var value = new google_protobuf_struct_pb.Struct;
|
|
|
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
|
|
msg.setProperties(value);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setDiagnostic(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.Remediation.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.Remediation} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getPolicyname();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getPolicypackname();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getPolicypackversion();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDescription();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProperties();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
5,
|
|
|
|
f,
|
|
|
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDiagnostic();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
6,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string policyName = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.getPolicyname = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.setPolicyname = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string policyPackName = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.getPolicypackname = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.setPolicypackname = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string policyPackVersion = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.getPolicypackversion = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.setPolicypackversion = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string description = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.getDescription = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.setDescription = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional google.protobuf.Struct properties = 5;
|
|
|
|
* @return {?proto.google.protobuf.Struct}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.getProperties = function() {
|
|
|
|
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
|
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.setProperties = function(value) {
|
|
|
|
return jspb.Message.setWrapperField(this, 5, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.clearProperties = function() {
|
|
|
|
return this.setProperties(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.hasProperties = function() {
|
|
|
|
return jspb.Message.getField(this, 5) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string diagnostic = 6;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.getDiagnostic = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.Remediation} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.Remediation.prototype.setDiagnostic = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 6, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.repeatedFields_ = [1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* Optional fields that are not set will be set to undefined.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.RemediateResponse.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.RemediateResponse} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
remediationsList: jspb.Message.toObjectList(msg.getRemediationsList(),
|
|
|
|
proto.pulumirpc.Remediation.toObject, includeInstance)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.RemediateResponse}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.RemediateResponse;
|
|
|
|
return proto.pulumirpc.RemediateResponse.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.RemediateResponse} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.RemediateResponse}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = new proto.pulumirpc.Remediation;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.Remediation.deserializeBinaryFromReader);
|
|
|
|
msg.addRemediations(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.RemediateResponse.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.RemediateResponse} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getRemediationsList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedMessage(
|
|
|
|
1,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.Remediation.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated Remediation remediations = 1;
|
|
|
|
* @return {!Array<!proto.pulumirpc.Remediation>}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.prototype.getRemediationsList = function() {
|
|
|
|
return /** @type{!Array<!proto.pulumirpc.Remediation>} */ (
|
|
|
|
jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.Remediation, 1));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!Array<!proto.pulumirpc.Remediation>} value
|
|
|
|
* @return {!proto.pulumirpc.RemediateResponse} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.prototype.setRemediationsList = function(value) {
|
|
|
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!proto.pulumirpc.Remediation=} opt_value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
* @return {!proto.pulumirpc.Remediation}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.prototype.addRemediations = function(opt_value, opt_index) {
|
|
|
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pulumirpc.Remediation, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.RemediateResponse} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.RemediateResponse.prototype.clearRemediationsList = function() {
|
|
|
|
return this.setRemediationsList([]);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-24 00:51:15 +00:00
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.repeatedFields_ = [3];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2019-06-24 00:51:15 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2019-06-24 00:51:15 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-06-24 00:51:15 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.AnalyzerInfo.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2019-06-24 00:51:15 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerInfo} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
displayname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
policiesList: jspb.Message.toObjectList(msg.getPoliciesList(),
|
2020-02-25 01:11:56 +00:00
|
|
|
proto.pulumirpc.PolicyInfo.toObject, includeInstance),
|
2020-03-08 21:11:55 +00:00
|
|
|
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2020-03-30 19:52:05 +00:00
|
|
|
supportsconfig: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
|
|
initialconfigMap: (f = msg.getInitialconfigMap()) ? f.toObject(includeInstance, proto.pulumirpc.PolicyConfig.toObject) : []
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.AnalyzerInfo;
|
|
|
|
return proto.pulumirpc.AnalyzerInfo.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerInfo} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setName(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setDisplayname(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = new proto.pulumirpc.PolicyInfo;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.PolicyInfo.deserializeBinaryFromReader);
|
|
|
|
msg.addPolicies(value);
|
|
|
|
break;
|
2020-02-25 01:11:56 +00:00
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setVersion(value);
|
|
|
|
break;
|
2020-03-08 21:11:55 +00:00
|
|
|
case 5:
|
|
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
|
|
msg.setSupportsconfig(value);
|
|
|
|
break;
|
2020-03-30 19:52:05 +00:00
|
|
|
case 6:
|
|
|
|
var value = msg.getInitialconfigMap();
|
|
|
|
reader.readMessage(value, function(message, reader) {
|
|
|
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.PolicyConfig.deserializeBinaryFromReader, "", new proto.pulumirpc.PolicyConfig());
|
|
|
|
});
|
|
|
|
break;
|
2019-06-24 00:51:15 +00:00
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.AnalyzerInfo.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.AnalyzerInfo} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDisplayname();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getPoliciesList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedMessage(
|
|
|
|
3,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.PolicyInfo.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
2020-02-25 01:11:56 +00:00
|
|
|
f = message.getVersion();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2020-03-08 21:11:55 +00:00
|
|
|
f = message.getSupportsconfig();
|
|
|
|
if (f) {
|
|
|
|
writer.writeBool(
|
|
|
|
5,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2020-03-30 19:52:05 +00:00
|
|
|
f = message.getInitialconfigMap(true);
|
|
|
|
if (f && f.getLength() > 0) {
|
|
|
|
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.PolicyConfig.serializeBinaryToWriter);
|
|
|
|
}
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string name = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.getName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.setName = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string displayName = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.getDisplayname = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.setDisplayname = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated PolicyInfo policies = 3;
|
2020-02-28 11:53:47 +00:00
|
|
|
* @return {!Array<!proto.pulumirpc.PolicyInfo>}
|
2019-06-24 00:51:15 +00:00
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.getPoliciesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return /** @type{!Array<!proto.pulumirpc.PolicyInfo>} */ (
|
2019-06-24 00:51:15 +00:00
|
|
|
jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.PolicyInfo, 3));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!Array<!proto.pulumirpc.PolicyInfo>} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.setPoliciesList = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!proto.pulumirpc.PolicyInfo=} opt_value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.addPolicies = function(opt_value, opt_index) {
|
|
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.pulumirpc.PolicyInfo, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.clearPoliciesList = function() {
|
2020-02-28 11:53:47 +00:00
|
|
|
return this.setPoliciesList([]);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-25 01:11:56 +00:00
|
|
|
/**
|
|
|
|
* optional string version = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.getVersion = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
2020-02-25 01:11:56 +00:00
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.setVersion = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
2020-02-25 01:11:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-03-08 21:11:55 +00:00
|
|
|
/**
|
|
|
|
* optional bool supportsConfig = 5;
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.getSupportsconfig = function() {
|
|
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {boolean} value
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.setSupportsconfig = function(value) {
|
|
|
|
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-03-30 19:52:05 +00:00
|
|
|
/**
|
|
|
|
* map<string, PolicyConfig> initialConfig = 6;
|
|
|
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
|
|
* empty, instead returning `undefined`
|
|
|
|
* @return {!jspb.Map<string,!proto.pulumirpc.PolicyConfig>}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.getInitialconfigMap = function(opt_noLazyCreate) {
|
|
|
|
return /** @type {!jspb.Map<string,!proto.pulumirpc.PolicyConfig>} */ (
|
|
|
|
jspb.Message.getMapField(this, 6, opt_noLazyCreate,
|
|
|
|
proto.pulumirpc.PolicyConfig));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears values from the map. The map will be non-null.
|
|
|
|
* @return {!proto.pulumirpc.AnalyzerInfo} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.AnalyzerInfo.prototype.clearInitialconfigMap = function() {
|
|
|
|
this.getInitialconfigMap().clear();
|
|
|
|
return this;};
|
|
|
|
|
|
|
|
|
2019-06-24 00:51:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
2020-02-28 11:53:47 +00:00
|
|
|
* Creates an object representation of this proto.
|
2019-06-24 00:51:15 +00:00
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2020-02-28 11:53:47 +00:00
|
|
|
* Optional fields that are not set will be set to undefined.
|
2019-06-24 00:51:15 +00:00
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
2020-02-28 11:53:47 +00:00
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-06-24 00:51:15 +00:00
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.PolicyInfo.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
2020-02-28 11:53:47 +00:00
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
2019-06-24 00:51:15 +00:00
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.PolicyInfo} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
displayname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
message: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2020-03-08 21:11:55 +00:00
|
|
|
enforcementlevel: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
|
|
configschema: (f = msg.getConfigschema()) && proto.pulumirpc.PolicyConfigSchema.toObject(includeInstance, f)
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.PolicyInfo;
|
|
|
|
return proto.pulumirpc.PolicyInfo.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.PolicyInfo} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setName(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setDisplayname(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setDescription(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setMessage(value);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
var value = /** @type {!proto.pulumirpc.EnforcementLevel} */ (reader.readEnum());
|
|
|
|
msg.setEnforcementlevel(value);
|
|
|
|
break;
|
2020-03-08 21:11:55 +00:00
|
|
|
case 6:
|
|
|
|
var value = new proto.pulumirpc.PolicyConfigSchema;
|
|
|
|
reader.readMessage(value,proto.pulumirpc.PolicyConfigSchema.deserializeBinaryFromReader);
|
|
|
|
msg.setConfigschema(value);
|
|
|
|
break;
|
2019-06-24 00:51:15 +00:00
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.PolicyInfo.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.PolicyInfo} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDisplayname();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getDescription();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getMessage();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getEnforcementlevel();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
|
|
|
5,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2020-03-08 21:11:55 +00:00
|
|
|
f = message.getConfigschema();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
6,
|
|
|
|
f,
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string name = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.getName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.PolicyInfo.prototype.setName = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string displayName = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.getDisplayname = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.PolicyInfo.prototype.setDisplayname = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string description = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.getDescription = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.PolicyInfo.prototype.setDescription = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string message = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.getMessage = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.PolicyInfo.prototype.setMessage = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional EnforcementLevel enforcementLevel = 5;
|
|
|
|
* @return {!proto.pulumirpc.EnforcementLevel}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.getEnforcementlevel = function() {
|
|
|
|
return /** @type {!proto.pulumirpc.EnforcementLevel} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-02-28 11:53:47 +00:00
|
|
|
/**
|
|
|
|
* @param {!proto.pulumirpc.EnforcementLevel} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
2019-06-24 00:51:15 +00:00
|
|
|
proto.pulumirpc.PolicyInfo.prototype.setEnforcementlevel = function(value) {
|
2020-02-28 11:53:47 +00:00
|
|
|
return jspb.Message.setProto3EnumField(this, 5, value);
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-03-08 21:11:55 +00:00
|
|
|
/**
|
|
|
|
* optional PolicyConfigSchema configSchema = 6;
|
|
|
|
* @return {?proto.pulumirpc.PolicyConfigSchema}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.getConfigschema = function() {
|
|
|
|
return /** @type{?proto.pulumirpc.PolicyConfigSchema} */ (
|
|
|
|
jspb.Message.getWrapperField(this, proto.pulumirpc.PolicyConfigSchema, 6));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {?proto.pulumirpc.PolicyConfigSchema|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.setConfigschema = function(value) {
|
|
|
|
return jspb.Message.setWrapperField(this, 6, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.PolicyInfo} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.clearConfigschema = function() {
|
|
|
|
return this.setConfigschema(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyInfo.prototype.hasConfigschema = function() {
|
|
|
|
return jspb.Message.getField(this, 6) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of repeated fields within this message type.
|
|
|
|
* @private {!Array<number>}
|
|
|
|
* @const
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.repeatedFields_ = [2];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* Optional fields that are not set will be set to undefined.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.PolicyConfigSchema.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.PolicyConfigSchema} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
|
|
requiredList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.PolicyConfigSchema;
|
|
|
|
return proto.pulumirpc.PolicyConfigSchema.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.PolicyConfigSchema} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = new google_protobuf_struct_pb.Struct;
|
|
|
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
|
|
msg.setProperties(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.addRequired(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.PolicyConfigSchema} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getProperties();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
1,
|
|
|
|
f,
|
|
|
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getRequiredList();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeRepeatedString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional google.protobuf.Struct properties = 1;
|
|
|
|
* @return {?proto.google.protobuf.Struct}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.getProperties = function() {
|
|
|
|
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
|
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.setProperties = function(value) {
|
|
|
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.clearProperties = function() {
|
|
|
|
return this.setProperties(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.hasProperties = function() {
|
|
|
|
return jspb.Message.getField(this, 1) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string required = 2;
|
|
|
|
* @return {!Array<string>}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.getRequiredList = function() {
|
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.setRequiredList = function(value) {
|
|
|
|
return jspb.Message.setField(this, 2, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @param {number=} opt_index
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.addRequired = function(value, opt_index) {
|
|
|
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfigSchema} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfigSchema.prototype.clearRequiredList = function() {
|
|
|
|
return this.setRequiredList([]);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* Optional fields that are not set will be set to undefined.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.PolicyConfig.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.PolicyConfig} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
enforcementlevel: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
|
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfig}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.PolicyConfig;
|
|
|
|
return proto.pulumirpc.PolicyConfig.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.PolicyConfig} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfig}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {!proto.pulumirpc.EnforcementLevel} */ (reader.readEnum());
|
|
|
|
msg.setEnforcementlevel(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = new google_protobuf_struct_pb.Struct;
|
|
|
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
|
|
msg.setProperties(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.PolicyConfig.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.PolicyConfig} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getEnforcementlevel();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getProperties();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
|
|
|
2,
|
|
|
|
f,
|
|
|
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional EnforcementLevel enforcementLevel = 1;
|
|
|
|
* @return {!proto.pulumirpc.EnforcementLevel}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.getEnforcementlevel = function() {
|
|
|
|
return /** @type {!proto.pulumirpc.EnforcementLevel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!proto.pulumirpc.EnforcementLevel} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfig} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.setEnforcementlevel = function(value) {
|
|
|
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional google.protobuf.Struct properties = 2;
|
|
|
|
* @return {?proto.google.protobuf.Struct}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.getProperties = function() {
|
|
|
|
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
|
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfig} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.setProperties = function(value) {
|
|
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
|
|
|
* @return {!proto.pulumirpc.PolicyConfig} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.clearProperties = function() {
|
|
|
|
return this.setProperties(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.PolicyConfig.prototype.hasProperties = function() {
|
|
|
|
return jspb.Message.getField(this, 2) != null;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* Optional fields that are not set will be set to undefined.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
|
|
* JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.pulumirpc.ConfigureAnalyzerRequest.toObject(opt_includeInstance, this);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
|
|
* the JSPB instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
|
|
|
* @param {!proto.pulumirpc.ConfigureAnalyzerRequest} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
policyconfigMap: (f = msg.getPolicyconfigMap()) ? f.toObject(includeInstance, proto.pulumirpc.PolicyConfig.toObject) : []
|
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
|
|
* @return {!proto.pulumirpc.ConfigureAnalyzerRequest}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.pulumirpc.ConfigureAnalyzerRequest;
|
|
|
|
return proto.pulumirpc.ConfigureAnalyzerRequest.deserializeBinaryFromReader(msg, reader);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
|
|
|
* @param {!proto.pulumirpc.ConfigureAnalyzerRequest} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.pulumirpc.ConfigureAnalyzerRequest}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = msg.getPolicyconfigMap();
|
|
|
|
reader.readMessage(value, function(message, reader) {
|
|
|
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.PolicyConfig.deserializeBinaryFromReader, "", new proto.pulumirpc.PolicyConfig());
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.serializeBinaryToWriter(this, writer);
|
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
|
|
|
* @param {!proto.pulumirpc.ConfigureAnalyzerRequest} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getPolicyconfigMap(true);
|
|
|
|
if (f && f.getLength() > 0) {
|
|
|
|
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.PolicyConfig.serializeBinaryToWriter);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* map<string, PolicyConfig> policyConfig = 1;
|
|
|
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
|
|
* empty, instead returning `undefined`
|
|
|
|
* @return {!jspb.Map<string,!proto.pulumirpc.PolicyConfig>}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.prototype.getPolicyconfigMap = function(opt_noLazyCreate) {
|
|
|
|
return /** @type {!jspb.Map<string,!proto.pulumirpc.PolicyConfig>} */ (
|
|
|
|
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
|
|
proto.pulumirpc.PolicyConfig));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears values from the map. The map will be non-null.
|
|
|
|
* @return {!proto.pulumirpc.ConfigureAnalyzerRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.ConfigureAnalyzerRequest.prototype.clearPolicyconfigMap = function() {
|
|
|
|
this.getPolicyconfigMap().clear();
|
|
|
|
return this;};
|
|
|
|
|
|
|
|
|
2019-06-24 00:51:15 +00:00
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
|
|
|
proto.pulumirpc.EnforcementLevel = {
|
|
|
|
ADVISORY: 0,
|
2020-03-08 21:11:55 +00:00
|
|
|
MANDATORY: 1,
|
2023-10-09 18:31:17 +00:00
|
|
|
DISABLED: 2,
|
|
|
|
REMEDIATE: 3
|
2019-06-24 00:51:15 +00:00
|
|
|
};
|
|
|
|
|
2017-09-22 02:18:21 +00:00
|
|
|
goog.object.extend(exports, proto.pulumirpc);
|