@@ -57,6 +57,10 @@ Traces::Traces()
57
57
enterpriseProjectIdIsSet_ = false ;
58
58
resourceAccountId_ = " " ;
59
59
resourceAccountIdIsSet_ = false ;
60
+ readOnly_ = false ;
61
+ readOnlyIsSet_ = false ;
62
+ operationId_ = " " ;
63
+ operationIdIsSet_ = false ;
60
64
}
61
65
62
66
Traces::~Traces () = default ;
@@ -138,6 +142,12 @@ web::json::value Traces::toJson() const
138
142
if (resourceAccountIdIsSet_) {
139
143
val[utility::conversions::to_string_t (" resource_account_id" )] = ModelBase::toJson (resourceAccountId_);
140
144
}
145
+ if (readOnlyIsSet_) {
146
+ val[utility::conversions::to_string_t (" read_only" )] = ModelBase::toJson (readOnly_);
147
+ }
148
+ if (operationIdIsSet_) {
149
+ val[utility::conversions::to_string_t (" operation_id" )] = ModelBase::toJson (operationId_);
150
+ }
141
151
142
152
return val;
143
153
}
@@ -352,6 +362,24 @@ bool Traces::fromJson(const web::json::value& val)
352
362
setResourceAccountId (refVal);
353
363
}
354
364
}
365
+ if (val.has_field (utility::conversions::to_string_t (" read_only" ))) {
366
+ const web::json::value& fieldValue = val.at (utility::conversions::to_string_t (" read_only" ));
367
+ if (!fieldValue.is_null ())
368
+ {
369
+ bool refVal;
370
+ ok &= ModelBase::fromJson (fieldValue, refVal);
371
+ setReadOnly (refVal);
372
+ }
373
+ }
374
+ if (val.has_field (utility::conversions::to_string_t (" operation_id" ))) {
375
+ const web::json::value& fieldValue = val.at (utility::conversions::to_string_t (" operation_id" ));
376
+ if (!fieldValue.is_null ())
377
+ {
378
+ std::string refVal;
379
+ ok &= ModelBase::fromJson (fieldValue, refVal);
380
+ setOperationId (refVal);
381
+ }
382
+ }
355
383
return ok;
356
384
}
357
385
@@ -839,6 +867,48 @@ void Traces::unsetresourceAccountId()
839
867
resourceAccountIdIsSet_ = false ;
840
868
}
841
869
870
+ bool Traces::isReadOnly () const
871
+ {
872
+ return readOnly_;
873
+ }
874
+
875
+ void Traces::setReadOnly (bool value)
876
+ {
877
+ readOnly_ = value;
878
+ readOnlyIsSet_ = true ;
879
+ }
880
+
881
+ bool Traces::readOnlyIsSet () const
882
+ {
883
+ return readOnlyIsSet_;
884
+ }
885
+
886
+ void Traces::unsetreadOnly ()
887
+ {
888
+ readOnlyIsSet_ = false ;
889
+ }
890
+
891
+ std::string Traces::getOperationId () const
892
+ {
893
+ return operationId_;
894
+ }
895
+
896
+ void Traces::setOperationId (const std::string& value)
897
+ {
898
+ operationId_ = value;
899
+ operationIdIsSet_ = true ;
900
+ }
901
+
902
+ bool Traces::operationIdIsSet () const
903
+ {
904
+ return operationIdIsSet_;
905
+ }
906
+
907
+ void Traces::unsetoperationId ()
908
+ {
909
+ operationIdIsSet_ = false ;
910
+ }
911
+
842
912
}
843
913
}
844
914
}
0 commit comments