@lansweeper/discovery-cloud-proto 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,12 @@ export class CloudEntity extends jspb.Message {
52
52
  setCategory(value: string): CloudEntity;
53
53
  getEnvironmentName(): string;
54
54
  setEnvironmentName(value: string): CloudEntity;
55
+ clearPublicCloudLinksList(): void;
56
+ getPublicCloudLinksList(): Array<PublicCloudLink>;
57
+ setPublicCloudLinksList(value: Array<PublicCloudLink>): CloudEntity;
58
+ addPublicCloudLinks(value?: PublicCloudLink, index?: number): PublicCloudLink;
59
+ getCloudAssetId(): string;
60
+ setCloudAssetId(value: string): CloudEntity;
55
61
 
56
62
  serializeBinary(): Uint8Array;
57
63
  toObject(includeInstance?: boolean): CloudEntity.AsObject;
@@ -79,6 +85,37 @@ export namespace CloudEntity {
79
85
  scanErrorList: Array<ScanError.AsObject>,
80
86
  category: string,
81
87
  environmentName: string,
88
+ publicCloudLinksList: Array<PublicCloudLink.AsObject>,
89
+ cloudAssetId: string,
90
+ }
91
+ }
92
+
93
+ export class PublicCloudLink extends jspb.Message {
94
+
95
+ hasToPublicCloudAssetId(): boolean;
96
+ clearToPublicCloudAssetId(): void;
97
+ getToPublicCloudAssetId(): google_protobuf_wrappers_pb.StringValue | undefined;
98
+ setToPublicCloudAssetId(value?: google_protobuf_wrappers_pb.StringValue): PublicCloudLink;
99
+
100
+ hasLinkType(): boolean;
101
+ clearLinkType(): void;
102
+ getLinkType(): google_protobuf_wrappers_pb.StringValue | undefined;
103
+ setLinkType(value?: google_protobuf_wrappers_pb.StringValue): PublicCloudLink;
104
+
105
+ serializeBinary(): Uint8Array;
106
+ toObject(includeInstance?: boolean): PublicCloudLink.AsObject;
107
+ static toObject(includeInstance: boolean, msg: PublicCloudLink): PublicCloudLink.AsObject;
108
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
109
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
110
+ static serializeBinaryToWriter(message: PublicCloudLink, writer: jspb.BinaryWriter): void;
111
+ static deserializeBinary(bytes: Uint8Array): PublicCloudLink;
112
+ static deserializeBinaryFromReader(message: PublicCloudLink, reader: jspb.BinaryReader): PublicCloudLink;
113
+ }
114
+
115
+ export namespace PublicCloudLink {
116
+ export type AsObject = {
117
+ toPublicCloudAssetId?: google_protobuf_wrappers_pb.StringValue.AsObject,
118
+ linkType?: google_protobuf_wrappers_pb.StringValue.AsObject,
82
119
  }
83
120
  }
84
121
 
@@ -521,6 +521,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.KubernetesPodCond
521
521
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.KubernetesService', null, global);
522
522
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.MicrosoftSecurityInsightHunting', null, global);
523
523
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.MicrosoftSecurityInsightWorkbook', null, global);
524
+ goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink', null, global);
524
525
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ResourceBilling', null, global);
525
526
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.Route53RecordSet', null, global);
526
527
  goog.exportSymbol('proto.com.lansweeper.discovery.cloud.api.v1.ScanError', null, global);
@@ -548,6 +549,27 @@ if (goog.DEBUG && !COMPILED) {
548
549
  */
549
550
  proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.displayName = 'proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity';
550
551
  }
552
+ /**
553
+ * Generated by JsPbCodeGenerator.
554
+ * @param {Array=} opt_data Optional initial data array, typically from a
555
+ * server response, or constructed directly in Javascript. The array is used
556
+ * in place and becomes part of the constructed object. It is not cloned.
557
+ * If no data is provided, the constructed object will be empty, but still
558
+ * valid.
559
+ * @extends {jspb.Message}
560
+ * @constructor
561
+ */
562
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink = function(opt_data) {
563
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
564
+ };
565
+ goog.inherits(proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink, jspb.Message);
566
+ if (goog.DEBUG && !COMPILED) {
567
+ /**
568
+ * @public
569
+ * @override
570
+ */
571
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.displayName = 'proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink';
572
+ }
551
573
  /**
552
574
  * Generated by JsPbCodeGenerator.
553
575
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11033,7 +11055,7 @@ if (goog.DEBUG && !COMPILED) {
11033
11055
  * @private {!Array<number>}
11034
11056
  * @const
11035
11057
  */
11036
- proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.repeatedFields_ = [12];
11058
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.repeatedFields_ = [12,15];
11037
11059
 
11038
11060
 
11039
11061
 
@@ -11080,7 +11102,10 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.toObject = function(incl
11080
11102
  scanErrorList: jspb.Message.toObjectList(msg.getScanErrorList(),
11081
11103
  proto.com.lansweeper.discovery.cloud.api.v1.ScanError.toObject, includeInstance),
11082
11104
  category: jspb.Message.getFieldWithDefault(msg, 13, ""),
11083
- environmentName: jspb.Message.getFieldWithDefault(msg, 14, "")
11105
+ environmentName: jspb.Message.getFieldWithDefault(msg, 14, ""),
11106
+ publicCloudLinksList: jspb.Message.toObjectList(msg.getPublicCloudLinksList(),
11107
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.toObject, includeInstance),
11108
+ cloudAssetId: jspb.Message.getFieldWithDefault(msg, 16, "")
11084
11109
  };
11085
11110
 
11086
11111
  if (includeInstance) {
@@ -11175,6 +11200,15 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.deserializeBinaryFromRea
11175
11200
  var value = /** @type {string} */ (reader.readString());
11176
11201
  msg.setEnvironmentName(value);
11177
11202
  break;
11203
+ case 15:
11204
+ var value = new proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink;
11205
+ reader.readMessage(value,proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.deserializeBinaryFromReader);
11206
+ msg.addPublicCloudLinks(value);
11207
+ break;
11208
+ case 16:
11209
+ var value = /** @type {string} */ (reader.readString());
11210
+ msg.setCloudAssetId(value);
11211
+ break;
11178
11212
  default:
11179
11213
  reader.skipField();
11180
11214
  break;
@@ -11304,6 +11338,21 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.serializeBinaryToWriter
11304
11338
  f
11305
11339
  );
11306
11340
  }
11341
+ f = message.getPublicCloudLinksList();
11342
+ if (f.length > 0) {
11343
+ writer.writeRepeatedMessage(
11344
+ 15,
11345
+ f,
11346
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.serializeBinaryToWriter
11347
+ );
11348
+ }
11349
+ f = message.getCloudAssetId();
11350
+ if (f.length > 0) {
11351
+ writer.writeString(
11352
+ 16,
11353
+ f
11354
+ );
11355
+ }
11307
11356
  };
11308
11357
 
11309
11358
 
@@ -11652,6 +11701,264 @@ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setEnvironment
11652
11701
  };
11653
11702
 
11654
11703
 
11704
+ /**
11705
+ * repeated PublicCloudLink public_cloud_links = 15;
11706
+ * @return {!Array<!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink>}
11707
+ */
11708
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.getPublicCloudLinksList = function() {
11709
+ return /** @type{!Array<!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink>} */ (
11710
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink, 15));
11711
+ };
11712
+
11713
+
11714
+ /**
11715
+ * @param {!Array<!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink>} value
11716
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11717
+ */
11718
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setPublicCloudLinksList = function(value) {
11719
+ return jspb.Message.setRepeatedWrapperField(this, 15, value);
11720
+ };
11721
+
11722
+
11723
+ /**
11724
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink=} opt_value
11725
+ * @param {number=} opt_index
11726
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink}
11727
+ */
11728
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.addPublicCloudLinks = function(opt_value, opt_index) {
11729
+ return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink, opt_index);
11730
+ };
11731
+
11732
+
11733
+ /**
11734
+ * Clears the list making it empty but non-null.
11735
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11736
+ */
11737
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.clearPublicCloudLinksList = function() {
11738
+ return this.setPublicCloudLinksList([]);
11739
+ };
11740
+
11741
+
11742
+ /**
11743
+ * optional string cloud_asset_id = 16;
11744
+ * @return {string}
11745
+ */
11746
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.getCloudAssetId = function() {
11747
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
11748
+ };
11749
+
11750
+
11751
+ /**
11752
+ * @param {string} value
11753
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity} returns this
11754
+ */
11755
+ proto.com.lansweeper.discovery.cloud.api.v1.CloudEntity.prototype.setCloudAssetId = function(value) {
11756
+ return jspb.Message.setProto3StringField(this, 16, value);
11757
+ };
11758
+
11759
+
11760
+
11761
+
11762
+
11763
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11764
+ /**
11765
+ * Creates an object representation of this proto.
11766
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11767
+ * Optional fields that are not set will be set to undefined.
11768
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11769
+ * For the list of reserved names please see:
11770
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11771
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11772
+ * JSPB instance for transitional soy proto support:
11773
+ * http://goto/soy-param-migration
11774
+ * @return {!Object}
11775
+ */
11776
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.toObject = function(opt_includeInstance) {
11777
+ return proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.toObject(opt_includeInstance, this);
11778
+ };
11779
+
11780
+
11781
+ /**
11782
+ * Static version of the {@see toObject} method.
11783
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11784
+ * the JSPB instance for transitional soy proto support:
11785
+ * http://goto/soy-param-migration
11786
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} msg The msg instance to transform.
11787
+ * @return {!Object}
11788
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11789
+ */
11790
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.toObject = function(includeInstance, msg) {
11791
+ var f, obj = {
11792
+ toPublicCloudAssetId: (f = msg.getToPublicCloudAssetId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
11793
+ linkType: (f = msg.getLinkType()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
11794
+ };
11795
+
11796
+ if (includeInstance) {
11797
+ obj.$jspbMessageInstance = msg;
11798
+ }
11799
+ return obj;
11800
+ };
11801
+ }
11802
+
11803
+
11804
+ /**
11805
+ * Deserializes binary data (in protobuf wire format).
11806
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11807
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink}
11808
+ */
11809
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.deserializeBinary = function(bytes) {
11810
+ var reader = new jspb.BinaryReader(bytes);
11811
+ var msg = new proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink;
11812
+ return proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.deserializeBinaryFromReader(msg, reader);
11813
+ };
11814
+
11815
+
11816
+ /**
11817
+ * Deserializes binary data (in protobuf wire format) from the
11818
+ * given reader into the given message object.
11819
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} msg The message object to deserialize into.
11820
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11821
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink}
11822
+ */
11823
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.deserializeBinaryFromReader = function(msg, reader) {
11824
+ while (reader.nextField()) {
11825
+ if (reader.isEndGroup()) {
11826
+ break;
11827
+ }
11828
+ var field = reader.getFieldNumber();
11829
+ switch (field) {
11830
+ case 1:
11831
+ var value = new google_protobuf_wrappers_pb.StringValue;
11832
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
11833
+ msg.setToPublicCloudAssetId(value);
11834
+ break;
11835
+ case 2:
11836
+ var value = new google_protobuf_wrappers_pb.StringValue;
11837
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
11838
+ msg.setLinkType(value);
11839
+ break;
11840
+ default:
11841
+ reader.skipField();
11842
+ break;
11843
+ }
11844
+ }
11845
+ return msg;
11846
+ };
11847
+
11848
+
11849
+ /**
11850
+ * Serializes the message to binary data (in protobuf wire format).
11851
+ * @return {!Uint8Array}
11852
+ */
11853
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.serializeBinary = function() {
11854
+ var writer = new jspb.BinaryWriter();
11855
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.serializeBinaryToWriter(this, writer);
11856
+ return writer.getResultBuffer();
11857
+ };
11858
+
11859
+
11860
+ /**
11861
+ * Serializes the given message to binary data (in protobuf wire
11862
+ * format), writing to the given BinaryWriter.
11863
+ * @param {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} message
11864
+ * @param {!jspb.BinaryWriter} writer
11865
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11866
+ */
11867
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.serializeBinaryToWriter = function(message, writer) {
11868
+ var f = undefined;
11869
+ f = message.getToPublicCloudAssetId();
11870
+ if (f != null) {
11871
+ writer.writeMessage(
11872
+ 1,
11873
+ f,
11874
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
11875
+ );
11876
+ }
11877
+ f = message.getLinkType();
11878
+ if (f != null) {
11879
+ writer.writeMessage(
11880
+ 2,
11881
+ f,
11882
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
11883
+ );
11884
+ }
11885
+ };
11886
+
11887
+
11888
+ /**
11889
+ * optional google.protobuf.StringValue to_public_cloud_asset_id = 1;
11890
+ * @return {?proto.google.protobuf.StringValue}
11891
+ */
11892
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.getToPublicCloudAssetId = function() {
11893
+ return /** @type{?proto.google.protobuf.StringValue} */ (
11894
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
11895
+ };
11896
+
11897
+
11898
+ /**
11899
+ * @param {?proto.google.protobuf.StringValue|undefined} value
11900
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} returns this
11901
+ */
11902
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.setToPublicCloudAssetId = function(value) {
11903
+ return jspb.Message.setWrapperField(this, 1, value);
11904
+ };
11905
+
11906
+
11907
+ /**
11908
+ * Clears the message field making it undefined.
11909
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} returns this
11910
+ */
11911
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.clearToPublicCloudAssetId = function() {
11912
+ return this.setToPublicCloudAssetId(undefined);
11913
+ };
11914
+
11915
+
11916
+ /**
11917
+ * Returns whether this field is set.
11918
+ * @return {boolean}
11919
+ */
11920
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.hasToPublicCloudAssetId = function() {
11921
+ return jspb.Message.getField(this, 1) != null;
11922
+ };
11923
+
11924
+
11925
+ /**
11926
+ * optional google.protobuf.StringValue link_type = 2;
11927
+ * @return {?proto.google.protobuf.StringValue}
11928
+ */
11929
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.getLinkType = function() {
11930
+ return /** @type{?proto.google.protobuf.StringValue} */ (
11931
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
11932
+ };
11933
+
11934
+
11935
+ /**
11936
+ * @param {?proto.google.protobuf.StringValue|undefined} value
11937
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} returns this
11938
+ */
11939
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.setLinkType = function(value) {
11940
+ return jspb.Message.setWrapperField(this, 2, value);
11941
+ };
11942
+
11943
+
11944
+ /**
11945
+ * Clears the message field making it undefined.
11946
+ * @return {!proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink} returns this
11947
+ */
11948
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.clearLinkType = function() {
11949
+ return this.setLinkType(undefined);
11950
+ };
11951
+
11952
+
11953
+ /**
11954
+ * Returns whether this field is set.
11955
+ * @return {boolean}
11956
+ */
11957
+ proto.com.lansweeper.discovery.cloud.api.v1.PublicCloudLink.prototype.hasLinkType = function() {
11958
+ return jspb.Message.getField(this, 2) != null;
11959
+ };
11960
+
11961
+
11655
11962
 
11656
11963
 
11657
11964