@@ -500,8 +500,15 @@ type PublishNetworkContainerRequest struct {
500500 CreateNetworkContainerRequestBody []byte
501501}
502502
503+ func (p PublishNetworkContainerRequest ) String () string {
504+ // %q as a verb on a byte slice prints safely escaped text instead of individual bytes
505+ return fmt .Sprintf ("{NetworkID:%s NetworkContainerID:%s JoinNetworkURL:%s CreateNetworkContainerURL:%s CreateNetworkContainerRequestBody:%q}" ,
506+ p .NetworkID , p .NetworkContainerID , p .JoinNetworkURL , p .CreateNetworkContainerURL , p .CreateNetworkContainerRequestBody )
507+ }
508+
503509// NetworkContainerParameters parameters available in network container operations
504510type NetworkContainerParameters struct {
511+ NCID string
505512 AuthToken string
506513 AssociatedInterfaceID string
507514}
@@ -514,6 +521,12 @@ type PublishNetworkContainerResponse struct {
514521 PublishResponseBody []byte
515522}
516523
524+ func (p PublishNetworkContainerResponse ) String () string {
525+ // %q as a verb on a byte slice prints safely escaped text instead of individual bytes
526+ return fmt .Sprintf ("{Response:%+v PublishErrStr:%s PublishStatusCode:%d PublishResponseBody:%q}" ,
527+ p .Response , p .PublishErrorStr , p .PublishStatusCode , p .PublishResponseBody )
528+ }
529+
517530// UnpublishNetworkContainerRequest specifies request to unpublish network container via NMAgent.
518531type UnpublishNetworkContainerRequest struct {
519532 NetworkID string
@@ -530,6 +543,12 @@ type UnpublishNetworkContainerResponse struct {
530543 UnpublishResponseBody []byte
531544}
532545
546+ func (u UnpublishNetworkContainerResponse ) String () string {
547+ // %q as a verb on a byte slice prints safely escaped text instead of individual bytes
548+ return fmt .Sprintf ("{Response:%+v UnpublishErrorStr:%s UnpublishStatusCode:%d UnpublishResponseBody:%q}" ,
549+ u .Response , u .UnpublishErrorStr , u .UnpublishStatusCode , u .UnpublishResponseBody )
550+ }
551+
533552// ValidAclPolicySetting - Used to validate ACL policy
534553type ValidAclPolicySetting struct {
535554 Protocols string `json:","`
0 commit comments