code: func (s *SnapshotCreateRepositoryService) buildBody() (interface{}, error) {
  	if s.bodyJson != nil {
  		return s.bodyJson, nil
  	}
  	if s.bodyString != "" {
  		return s.bodyString, nil
  	}
  
  	body := map[string]interface{}{
  		"type": s.typ,
  	}
  	if len(s.settings) > 0 {
  		body["settings"] = s.settings
  	}
  	return body, nil
  }
docs: // buildBody builds the body for the operation.